mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update unit test
This commit is contained in:
@@ -38,8 +38,11 @@ namespace OrmTest
|
|||||||
Db.CodeFirst.InitTables<UnitCodeFirst131>();
|
Db.CodeFirst.InitTables<UnitCodeFirst131>();
|
||||||
Db.Insertable(new UnitCodeFirst131() { Id = 1 }).ExecuteCommand();
|
Db.Insertable(new UnitCodeFirst131() { Id = 1 }).ExecuteCommand();
|
||||||
Db.CodeFirst.InitTables<UNITCODEFIRST131>();
|
Db.CodeFirst.InitTables<UNITCODEFIRST131>();
|
||||||
|
var xxx = Db.Queryable<UNITCODEFIRST131>().ToList();
|
||||||
Db.CodeFirst.InitTables<UNITCOdEFIRST131>();
|
Db.CodeFirst.InitTables<UNITCOdEFIRST131>();
|
||||||
Db.CodeFirst.InitTables<UnitADFA13131>();
|
Db.CodeFirst.InitTables<UnitADFA13131>();
|
||||||
|
if (Db.DbMaintenance.IsAnyTable("UnitIndextest", false))
|
||||||
|
Db.DbMaintenance.DropTable("UnitIndextest");
|
||||||
Db.CodeFirst.InitTables<UnitIndextest>();
|
Db.CodeFirst.InitTables<UnitIndextest>();
|
||||||
}
|
}
|
||||||
[SqlSugar.SugarIndex("UnitIndextestIndex2", nameof(UnitIndextest.Table1), SqlSugar.OrderByType.Asc)]
|
[SqlSugar.SugarIndex("UnitIndextestIndex2", nameof(UnitIndextest.Table1), SqlSugar.OrderByType.Asc)]
|
||||||
|
Reference in New Issue
Block a user