public static AdventureWorksProductContext GetEagerContext()
 {
     var context = new AdventureWorksProductContext();
     context.Configuration.LazyLoadingEnabled = false;
     context.Configuration.ProxyCreationEnabled = false;
     return context;
 }
Пример #2
0
        public static AdventureWorksProductContext GetEagerContext()
        {
            var context = new AdventureWorksProductContext();

            context.Configuration.LazyLoadingEnabled   = false;
            context.Configuration.ProxyCreationEnabled = false;
            return(context);
        }