Example #1
0
        public Database(string connectionString)
        {
            if (string.IsNullOrWhiteSpace(connectionString))
            {
                throw new ArgumentNullException(nameof(connectionString));
            }

            Context = new RegistryDbContext(connectionString);
            Context.Configuration.AutoDetectChangesEnabled = false;
            Context.Configuration.LazyLoadingEnabled       = false;
            Context.Configuration.ProxyCreationEnabled     = false;
        }
Example #2
0
 public Database()
 {
     Context = new RegistryDbContext();
     Context.Configuration.AutoDetectChangesEnabled = false;
 }
 public Database()
 {
     Context = new RegistryDbContext();
     Context.Configuration.AutoDetectChangesEnabled = false;
 }
Example #4
0
 public Database(RegistryDbContext context)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
     Context.ChangeTracker.AutoDetectChangesEnabled = false;
 }