コード例 #1
0
        public virtual void DropTable(string tableName)
        {
            tableName.MustNotBeEmpty();
            var cmd = string.Format("drop table {0}", FormatName(tableName));

            Db.ExecuteCommand(cmd);
        }
コード例 #2
0
        protected virtual void SetupTable()
        {
            Db.ExecuteCommand(@"
create table test
( id int not null,
name varchar(20),
constraint pk_test primary key (id)
);
create index ix_test on test(name)
");
        }