entity framework - Linq-to-entities - Include() method not loading -


If I use one join, then the Include () method is no longer working, for example :

 From  Join DC.INT.IN ("Properties"). ID is equal to I.Member.ID on I.EM (select i.collection.ID == Collection ID)   

E . Properties not loaded

include, without joining () works

li


Icons using the Include () The E-Framework has known limitations. Some operations are not included in the included only.

It seems that you can run on those boundaries as one, to work around it, you should try to do something like this:

  Var result = e not included in dc.Entities // Notice E at d.Items. IID is equal to I.Member.ID where (i.Collection.ID == collectionID) select new {unit = e, property = e. Property};  

This property will return, and if the relation between entity and property is multiple (but not many), you will find that each resulting anonymous type is similar in these values: AnonType.Entity.Properties anonType.Properties

This unit is a side-effect of a feature in the framework called Relation Fixup.

For more information see this in me.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -