mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update unit test
This commit is contained in:
@@ -174,7 +174,16 @@ namespace OrmTest
|
|||||||
_db.QueryFilter.Clear();
|
_db.QueryFilter.Clear();
|
||||||
|
|
||||||
|
|
||||||
|
Db.CodeFirst.InitTables<UnitEnumTest>();
|
||||||
|
Db.Insertable(new UnitEnumTest() { type = null }).ExecuteCommand();
|
||||||
|
Db.Insertable(new UnitEnumTest() { type = DbType.MySql }).ExecuteCommand();
|
||||||
|
var xx = Db.Queryable<UnitEnumTest>().ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class UnitEnumTest
|
||||||
|
{
|
||||||
|
[SqlSugar.SugarColumn(IsNullable =true)]
|
||||||
|
public DbType? type { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Dat_WorkBill
|
public class Dat_WorkBill
|
||||||
|
Reference in New Issue
Block a user