public new void TearDown()
        {
            base.TearDown();

            SqlCECommandBuilder commandBuilder = new SqlCECommandBuilder();
            DbCommand           command        = commandBuilder.GetConnection(connString).CreateCommand();

            command.CommandText = "delete from [ContentTemplate];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [Snippet];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [NavigationPath];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [Message];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [PageKeyword];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [CategoryBinding];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [PageContent];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [Category];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [Namespace] where [Name] <> '';";
            command.ExecuteNonQuery();
        }
        public new void TearDown()
        {
            base.TearDown();

            SqlCECommandBuilder commandBuilder = new SqlCECommandBuilder();
            DbCommand           command        = commandBuilder.GetConnection(connString).CreateCommand();

            command.CommandText = "delete from [AclEntry];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [OutgoingLink];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [PluginStatus];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [RecentChange];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [MetaDataItem];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [Setting];";
            command.ExecuteNonQuery();
        }
예제 #3
0
        public void FixtureTearDown()
        {
            SqlCECommandBuilder commandBuilder = new SqlCECommandBuilder();
            DbCommand           command        = commandBuilder.GetCommand(connString, "delete from [Version];", new List <SqlCommon.Parameter>());

            command.ExecuteNonQuery();
            command.Connection.Close();
            command.Connection.Dispose();

            try {
                System.IO.File.Delete(dbPath);
            }
            catch { }
        }
예제 #4
0
        public new void TearDown()
        {
            base.TearDown();
            SqlCECommandBuilder commandBuilder = new SqlCECommandBuilder();
            DbCommand           command        = commandBuilder.GetConnection(connString).CreateCommand();

            command.CommandText = "delete from [PluginAssembly];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [Log];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [GlobalSetting];";
            command.ExecuteNonQuery();
        }
        public void FixtureTearDown()
        {
            SqlCECommandBuilder commandBuilder = new SqlCECommandBuilder();
            DbCommand           command        = commandBuilder.GetConnection(connString).CreateCommand();

            command.CommandText = "delete from [Version];";
            command.ExecuteNonQuery();
            command.Connection.Close();
            command.Connection.Dispose();

            try {
                System.IO.File.Delete(dbPath);
            }
            catch {}
        }
예제 #6
0
        public new void TearDown()
        {
            base.TearDown();

            SqlCECommandBuilder commandBuilder = new SqlCECommandBuilder();
            DbCommand           command        = commandBuilder.GetConnection(connString).CreateCommand();

            command.CommandText = "delete from [UserData];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [UserGroupMembership];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [UserGroup];";
            command.ExecuteNonQuery();

            command.CommandText = "delete from [User];";
            command.ExecuteNonQuery();
        }