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