Sunday, May 23, 2010

Calling a RIAServices Query from Code

var context = Project.Web.Services.DomainContext();

context.Load(
    context.GetSomeItemQuery(parameters),
    LoadBehavior.RefreshCurrent, DataLoaded, null);

void DataLoaded(LoadOperation<Web.Models.Entity> loadOperation)
{
    loadOperation.Entities = …

No comments:

Post a Comment