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); 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.