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