本文整理汇总了C#中Setup.DropTestTables方法的典型用法代码示例。如果您正苦于以下问题:C# Setup.DropTestTables方法的具体用法?C# Setup.DropTestTables怎么用?C# Setup.DropTestTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Setup
的用法示例。
在下文中一共展示了Setup.DropTestTables方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MySQLSelectTests
public MySQLSelectTests()
{
_db = new TestDB(TestConfiguration.MySqlTestConnectionString, "MySql.Data.MySqlClient");
var setup = new Setup(_db.Provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例2: SQLiteSelectTests
public SQLiteSelectTests()
{
_db = new TestDB(new SQLitey().Connection, DataProviders.DbClientTypeName.SqlLite);
var setup = new Setup(_db.Provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例3: OracleSelectTests
public OracleSelectTests()
{
_db = new TestDB(TestConfiguration.OracleTestConnectionString, DbClientTypeName.Oracle);
var setup = new Setup(_db.Provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例4: SelectTests
public SelectTests()
{
provider = ProviderFactory.GetProvider("WestWind");
var setup = new Setup(provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例5: UpdateTests
public UpdateTests()
{
_db = new TestDB(ProviderFactory.GetProvider("WestWind"));
var setup = new Setup(_db.Provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例6: LinqGeneratorBugs
public LinqGeneratorBugs()
{
_db = new TestDB(TestConfiguration.MsSql2005TestConnectionString, DbClientTypeName.MsSql);
var setup = new Setup(_db.Provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例7: InsertTests
public InsertTests()
{
var provider = ProviderFactory.GetProvider("WestWind");
_db = new TestDB(provider);
var setup = new Setup(provider);
setup.DropTestTables();
setup.CreateTestTable();
setup.LoadTestData();
}
示例8: ResetDB
private static void ResetDB(IDataProvider provider)
{
var setup = new Setup(provider);
setup.DropTestTables();
setup.CreateTestTable();
}