LoadOperation always returns zero entities


hi,

i using following code access database via domainservice

value val = null;
context.load(context.getvaluequery(), lo =>
        {           if (!lo.haserror)             val = lo.entities.firstordefault();           else             messagebox.show(lo.error.message);         }, null);


but val stays null , returning entitiyset has 0 rows. tried using no lambda expression accessing loadoperation result same. i.e.:

        loadoperation<value> op = context.load<value>(context.getvaluequery());         value csv = op.entities.firstordefault();

i tried different querys, 1 working fine @ location in code.

as pass domaincontext reference through method tried creating new domaincontext , use query still no returning entities database (which absolutely not empty :)).

am missing crucial point here?

regards,

stephan nielsen

you on same thread call server. load can't complete until after code complete.



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........