mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update unit test
This commit is contained in:
parent
1803c609e0
commit
34c72c0892
@ -41,6 +41,30 @@ namespace OrmTest
|
||||
if (Db.DbMaintenance.IsAnyTable("User", false))
|
||||
Db.DbMaintenance.DropTable("User");
|
||||
Db.CodeFirst.InitTables<User>();
|
||||
if (Db.DbMaintenance.IsAnyTable("UnitCodeFirst131", false))
|
||||
Db.DbMaintenance.DropTable("UnitCodeFirst131");
|
||||
Db.CodeFirst.InitTables<UnitCodeFirst131>();
|
||||
Db.Insertable(new UnitCodeFirst131() { Id = 1 }).ExecuteCommand();
|
||||
Db.CodeFirst.InitTables<UNITCODEFIRST131>();
|
||||
Db.CodeFirst.InitTables<UNITCOdEFIRST131>();
|
||||
}
|
||||
public class UnitCodeFirst131
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
public class UNITCODEFIRST131
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[SqlSugar.SugarColumn(DefaultValue = "a")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
public class UNITCOdEFIRST131
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[SqlSugar.SugarColumn(DefaultValue = "a")]
|
||||
public string Name { get; set; }
|
||||
[SqlSugar.SugarColumn(DefaultValue = "0")]
|
||||
public int dt { get; set; }
|
||||
}
|
||||
public class User
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user