Ejemplo n.º 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); }; ;
 }
Ejemplo n.º 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); }; ;
        }
Ejemplo n.º 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); };;
        }
Ejemplo n.º 4
0
 public AdminDatabase()
 {
     Context = new DisciturContext();
     Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); };;
 }
Ejemplo n.º 5
0
 public AdminDatabase()
 {
     Context = new DisciturContext();
     Context.Database.Log = s => { System.Diagnostics.Debug.WriteLine(s); }; ;
 }