Silverlight 4 RIA does not return anything using DomainContext
Posted
by Savvas Sopiadis
on Stack Overflow
See other posts from Stack Overflow
or by Savvas Sopiadis
Published on 2010-03-11T19:04:25Z
Indexed on
2010/03/11
19:09 UTC
Read the original article
Hit count: 424
silverlight-4.0
|ria-services
Hi everybody!
Just learning Silverlight 4/RIA and i 'm stuck in a weird problem: setup an ASP.NET MVC project as the project hosting the Domain service. In this i tried to get data from the Domain Service which worked fine (i'm using a repository in it).
Now i tried to setup a SL4 project. I though i do it the MVVM-way, so i decided to setup a ViewModel Class with the following code:
public class ViewModel
{
OrganizationDomainContext dsCtxt = new OrganizationDomainContext();
public ViewModel()
{
EntityQuery<Culture> query = from cu in dsCtxt.GetAllCulturesQuery()
select cu;
LoadOperation<Culture> lo = dsCtxt.Load(query);
}
}
The crazy thing about this is .. it doesn't return anything!!! What am i missing here?
Thanks in advance
© Stack Overflow or respective owner