阅读背景:

linq to sql stack overflow with self-referencing entity

来源:互联网 

I have an entity that contains many of itself, how do I map this in LINQ to SQl such that it does not do an infinite loop of getting e1 then all its children then their parents (e1) then its children and repeat? Now I know I can do this if I set the child property to false, however that is the most important property (don't really care about the parent). Is there a way to have it do lazy loading? Would that even fix it?I have an entity that contains many of itself,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: