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