c# - How to Load Related Entities after retrieving item from Memcache -


i'm storing object memcached using enyim.

however, when pulling object out of memcached related entities null. using system.runtime.caching entities load fine. or hints store these related entities appreciated. thank you.

[serializable] public class inventory {     public inventory() {  }      public int inventoryid { get; set; }      //not null     public int productid { get; set; }      //null enyim     public virtual product product { get; set; }      //null enyim     public virtual icollection<warehouseinventory> warehouseinventories { get; set; }  .... } 

you have disable dbcontext.configuration.proxycreationenabled, , make sure aggregated objects loaded when inventory object materialized. (use 'include' extension method on invetory object system.data.entity namespace)


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -