public virtual void DropTable(string tableName) { tableName.MustNotBeEmpty(); var cmd = string.Format("drop table {0}", FormatName(tableName)); Db.ExecuteCommand(cmd); }
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) "); }