winforms - LINQ: Stop lazy loading or force properties to be loaded -


Consider a report in Windows formats that uses Linux for objects in the form of data.

I have a unit named credit with a consortium named Customer . The problem is that when I try to reach A property in the customer's report, it returns empty or empty string.

I think this is due to the sluggish load, but I'm not sure to be honest, is there any way to fix this problem?

In your case, closing the data reference leads to zero value, which for through use had not been recovered using DataLoadOptions to indicate clearly the context:

  (var your Detatontekst = .....) {DataLoadOptions Dlo = new DataLoadOptions (); Dlo.LoadWith & lt; Loans & gt; (LoanRecord => LonarCard. Customer); YourDataContext.LoadOptions = dlo; // Type the code to retrieve data}  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -