mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Add unit test
This commit is contained in:
parent
875515bbdb
commit
5dfbfb7b7b
@ -47,6 +47,16 @@ namespace OrmTest
|
||||
Db.Insertable(new UnitCodeFirst131() { Id = 1 }).ExecuteCommand();
|
||||
Db.CodeFirst.InitTables<UNITCODEFIRST131>();
|
||||
Db.CodeFirst.InitTables<UNITCOdEFIRST131>();
|
||||
Db.CodeFirst.InitTables<TestTbl>();
|
||||
}
|
||||
[SugarTable("test_tbl")]
|
||||
public class TestTbl
|
||||
{
|
||||
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "birthday", IsNullable = true, DefaultValue = "1900-01-01")]
|
||||
public DateTime Birthday { get; set; }
|
||||
}
|
||||
public class UnitCodeFirst131
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user