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
1c3749c769
commit
c5352d17b8
@ -164,8 +164,19 @@ namespace OrmTest
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
Console.WriteLine("用例跑完");
|
||||
Db.CodeFirst.InitTables<UnitDateOffsetTimex>();
|
||||
Db.DbMaintenance.TruncateTable<UnitDateOffsetTimex>();
|
||||
Db.Insertable(new UnitDateOffsetTimex() { offsetTime = DateTimeOffset.Now }).ExecuteCommand();
|
||||
Db.Insertable(new List<UnitDateOffsetTimex>() {
|
||||
new UnitDateOffsetTimex() { offsetTime = DateTimeOffset.Now },
|
||||
new UnitDateOffsetTimex() { offsetTime = DateTimeOffset.Now }}).ExecuteCommand();
|
||||
var dt = Db.Ado.GetDataTable("select * from UnitDateOffsetTimex");
|
||||
}
|
||||
}
|
||||
|
||||
public class UnitDateOffsetTimex
|
||||
{
|
||||
public DateTimeOffset offsetTime { get; set; }
|
||||
}
|
||||
|
||||
public class UnitBool01
|
||||
|
Loading…
Reference in New Issue
Block a user