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);
        }