mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-29 09:54:44 +08:00
Update unit test
This commit is contained in:
@@ -12,13 +12,8 @@ namespace OrmTest
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
|
||||
{
|
||||
ConnectionString = Config.ConnectionString,
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
|
||||
var db = NewUnitTest.Db;
|
||||
|
||||
db.CodeFirst.InitTables<Country111, Province111, City111>();
|
||||
db.DbMaintenance.TruncateTable("Country_111");
|
||||
db.DbMaintenance.TruncateTable("Province_111");
|
||||
|
||||
@@ -12,12 +12,7 @@ namespace OrmTest
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
|
||||
{
|
||||
ConnectionString = Config.ConnectionString,
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true
|
||||
});
|
||||
var db = NewUnitTest.Db;
|
||||
db.DbMaintenance.CreateDatabase();
|
||||
|
||||
db.CodeFirst.InitTables<Country1111>();
|
||||
|
||||
Reference in New Issue
Block a user