linq to sql - Eagerly loading entities in Linq2Sql -


I eagerly load an entity and its related properties (many from one to the other) using loadwidth I am trying to associate with AssociateDialoadOptes, however, after seeing the generated SQL I, I noticed that statements generated by LoadWith add all the left outer ones.

Then the code below generates all the left externals to obtain the data of related properties. Why is it like this? And what does it get internally instead of in any way to load to load. I know that I can do this with a simple "joining in the link", however, I like how clean and easy the load works syntax is thanks in advance

  Load the data. Load (TC customer's) (function (c) c. Order) Dataload opt-in Load (with Torder) (Function (O) O. products) Dataload Load (function (C) c.ProductTranslations.Where (function (T) T. language = "N"))  
< / Div>

All customer orders for which an English product translation exists

Data Load Options With affiliation & lt; TCustomer & gt; (C => c.Orders. (O => Objects. Selection (multiple) = (P => P. Product Transaction). Any (pt = & gt; pt. Language == "N")));

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -