mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Unit test
This commit is contained in:
parent
70163e841e
commit
0bb893df97
@ -27,6 +27,16 @@ namespace OrmTest
|
||||
});
|
||||
// db.Utilities.RemoveCacheAll();
|
||||
var xxxxx = Db.DbMaintenance.GetColumnInfosByTableName("TESTA1", false);
|
||||
if (Db.DbMaintenance.IsAnyTable("User", false))
|
||||
Db.DbMaintenance.DropTable("User");
|
||||
Db.CodeFirst.InitTables<User>();
|
||||
}
|
||||
public class User
|
||||
{
|
||||
[SugarColumn(IndexGroupNameList = new string[] { "index" })]
|
||||
public int key { get; set; }
|
||||
[SugarColumn(UniqueGroupNameList = new string[] { "index" })]
|
||||
public int key2 { get; set; }
|
||||
}
|
||||
public class TESTA1
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user