Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }