public void Setup()
 {
     Database.SetInitializer<TestContext>(null);// so it doesnt think db is different and try and recreate/migrate it
     _context = new TestContext(_connectionString);
     _context.Configuration.AutoDetectChangesEnabled = false;
     _context.Configuration.LazyLoadingEnabled = false;
     _context.Configuration.ProxyCreationEnabled = false;
     _context.Configuration.ValidateOnSaveEnabled = false;
 }
 public void Setup()
 {
     Database.SetInitializer<TestContext>(null);// so it doesnt think db is different and try and recreate/migrate it
     _context = new TestContext(_connectionString);
     _toDelete = new List<int>();
 }