mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add unit test
This commit is contained in:
parent
5cb0a2c0ab
commit
bb85260cf8
@ -53,6 +53,29 @@ namespace OrmTest
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
db.CodeFirst.InitTables<UnitDAFREA>();
|
||||
var r=db.DbMaintenance.GetColumnInfosByTableName("UnitDAFREA", false).First().ColumnDescription;
|
||||
if (r != "a")
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
db.CodeFirst.InitTables<UNITDAFREA>();
|
||||
r = db.DbMaintenance.GetColumnInfosByTableName("UnitDAFREA", false).First().ColumnDescription;
|
||||
if (r != "b")
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
}
|
||||
|
||||
public class UnitDAFREA
|
||||
{
|
||||
[SugarColumn(ColumnDescription ="a")]
|
||||
public string a { get; set; }
|
||||
}
|
||||
public class UNITDAFREA
|
||||
{
|
||||
[SugarColumn(ColumnDescription = "b")]
|
||||
public string a { get; set; }
|
||||
}
|
||||
|
||||
public class Unitsdfay
|
||||
|
Loading…
Reference in New Issue
Block a user