Fetch returns empty objects.

Fetch returns empty objects.

Old forum URL: forums.lhotka.net/forums/t/8762.aspx


Eblanchette posted on Monday, April 05, 2010

Hi everybody.  

I am facing a weird problem with one of my Csla Object Lists using Csla Light.  

The problem is that in the fetch method, I populate the list using a Stored Procedure, and everything works fine there.  BUT, when it gets back to the silverlight UI, in the event handler, the data is there but empty(instances are in the list, but everything inside them is null).  I tried to find the answer, but I must admit that I am clueless on this one.

The only difference between this object list and the others in my project which are working 100% fine is the number of properties, there is a lot more.

Thanks for answering.

RockfordLhotka replied on Monday, April 05, 2010

Are you checking e.Error in the callback? You must always check e.Error to find out if there was an exception during the async processing. The e.Object value will be null if e.Error has a value.

Eblanchette replied on Monday, April 05, 2010

e.Error is null, and e.Object is not null, in fact, it contains a list of objects, but inside these objects, all properties/members are null

ajj3085 replied on Monday, April 05, 2010

Are you using managed fields?  If not, are you overriding GetState and SetState (IIRC) from MobileObject?

pneurohr replied on Tuesday, May 04, 2010

Did you ever find a solution to this problem. I am having the same thing happen to me. The objects are populated in the data portal then empty when returned to the event handler.

Copyright (c) Marimer LLC