예제 #1
0
 public LegacyDatabase(IIdentityMapper identityMapper)
 {
     _identityMapper = identityMapper;
     Context = new DisciturContext();
     //Context.Configuration.AutoDetectChangesEnabled = false;
     // Lazy loading is turned off
     Context.Configuration.LazyLoadingEnabled = true;
     Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); }; ;
 }
예제 #2
0
        public Database(IIdentityMapper identityMapper)
        {
            Contract.Requires<ArgumentNullException>(identityMapper != null, "identityMapper");
            _identityMapper = identityMapper;

            Context = new DisciturContext();
            //Context.Configuration.AutoDetectChangesEnabled = false;
            // Lazy loading is turned off
            //Context.Configuration.LazyLoadingEnabled = false;
            Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); }; ;
        }
예제 #3
0
        public Database(IIdentityMapper identityMapper)
        {
            Contract.Requires <ArgumentNullException>(identityMapper != null, "identityMapper");
            _identityMapper = identityMapper;

            Context = new DisciturContext();
            //Context.Configuration.AutoDetectChangesEnabled = false;
            // Lazy loading is turned off
            //Context.Configuration.LazyLoadingEnabled = false;
            Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); };;
        }
예제 #4
0
 public AdminDatabase()
 {
     Context = new DisciturContext();
     Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); };;
 }
예제 #5
0
 public AdminDatabase()
 {
     Context = new DisciturContext();
     Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); }; ;
 }