예제 #1
0
        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();
        }
예제 #2
0
        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();
        }