protected FixtureWithRelationalStore(ITestOutputHelper output) { integrationTestDatabase = new IntegrationTestDatabase(output); integrationTestDatabase.ExecuteScript("EXEC sp_MSforeachtable \"ALTER TABLE ? NOCHECK CONSTRAINT all\""); integrationTestDatabase.ExecuteScript("EXEC sp_MSforeachtable \"DELETE FROM ?\""); integrationTestDatabase.ExecuteScript("EXEC sp_MSforeachtable \"ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all\""); integrationTestDatabase.Store.Reset(); }
public virtual void SetUp() { integrationTestDatabase = new IntegrationTestDatabase(); integrationTestDatabase.ExecuteScript("EXEC sp_MSforeachtable \"ALTER TABLE ? NOCHECK CONSTRAINT all\""); integrationTestDatabase.ExecuteScript("EXEC sp_MSforeachtable \"DELETE FROM ?\""); integrationTestDatabase.ExecuteScript("EXEC sp_MSforeachtable \"ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all\""); integrationTestDatabase.Store.Reset(); }