Silverlight 4 RIA does not return anything using DomainContext
- by Savvas Sopiadis
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