If you use LINQ to SQL and you’re entities are not loaded after you call a GetQuery on the DomainContext, you probably did not use a callback.

TTSDomainContext context = new TTSDomainContext();
LoadOperation op = context.Load(
context.GetTasksQuery(),
result =>
{
  if (!result.HasError)
  {
    //At this point the entities are loaded
       }
    },null); 

Tags: ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>