protected void CreateDbContext() { DbContext = new SkyberryContext(); // Do NOT enable proxied entities, else serialization fails DbContext.Configuration.ProxyCreationEnabled = false; // Load navigation properties explicitly (avoid serialization trouble) DbContext.Configuration.LazyLoadingEnabled = false; Cache = new DefaultCacheProvider(); }