When setting the LoadOptions
property on a LinqToSql DataContext
, if the context has already returned results from another query, the exception "Setting load options is not allowed after results have been returned from a query" is thrown.
What I want to know is, is there a way to inspect the DataContext object to see if it has already returned results from a previous query?