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

            Context = new AccountancyContext(connectionString);
            Context.Configuration.AutoDetectChangesEnabled = false;
            Context.Configuration.LazyLoadingEnabled       = false;
            Context.Configuration.ProxyCreationEnabled     = false;
        }
Beispiel #2
0
 public Database()
 {
     Context = new AccountancyContext();
     Context.Configuration.AutoDetectChangesEnabled = false;
 }
Beispiel #3
0
 public Database()
 {
     Context = new AccountancyContext();
     Context.Configuration.AutoDetectChangesEnabled = false;
 }