mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 10:24:55 +08:00
Add unit test
This commit is contained in:
@@ -13,6 +13,13 @@ namespace OrmTest
|
||||
if (Db.DbMaintenance.IsAnyTable("UnitCodeTest1", false))
|
||||
Db.DbMaintenance.DropTable("UnitCodeTest1");
|
||||
Db.CodeFirst.InitTables<UnitCodeTest1>();
|
||||
Db.CodeFirst.InitTables<UnitIndextest>();
|
||||
}
|
||||
[SqlSugar.SugarIndex("UnitIndextestIndex", nameof(UnitIndextest.Table), SqlSugar.OrderByType.Asc)]
|
||||
public class UnitIndextest
|
||||
{
|
||||
public string Table { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
public class UnitCodeTest1
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user