Beispiel #1
0
 public void Dispose()
 {
     DbInitializer.SeedData(_db);
     //CleanDatabase();
     DbInitializer.ClearData(_db);
     _db.Dispose();
 }
Beispiel #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (_disposed)
     {
         return;
     }
     if (disposing)
     {
         //Free any other managed objects here
     }
     Db.Dispose();
     _disposed = true;
 }
Beispiel #3
0
 public void Dispose()
 {
     DbInitializer.ClearData(_db);
     _db.Dispose();
 }