Complex data types in WCF?

后端 未结 14 1020
自闭症患者
自闭症患者 2020-12-12 19:48

I\'ve run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, \'connect

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 20:30

    If you are working with WCF+(EF+POCO) then try setting,

    ObjectContext.ContextOptions.LazyLoadingEnabled = false;
    ObjectContext.ContextOptions.ProxyCreationEnabled = false;
    

提交回复
热议问题