Add user test case

This commit is contained in:
sunkaixuan 2024-04-29 09:47:16 +08:00
parent 9a384c4100
commit b4450fd2d5

View File

@ -12,6 +12,11 @@ namespace OrmTest
public static void Init()
{
var db = NewUnitTest.Db;
db.CodeFirst.InitTables<UnitOrderfafaadfa>();
db.CodeFirst.InitTables<UnitOrderItemafdaa>();
db.Queryable<UnitOrderItemafdaa>()
.Where(it => it.Order.CreateTime.Value.Date>DateTime.Now&& it.Order.CreateTime.Value.Date > DateTime.Now)
.ToList();
}
public class UnitOrderfafaadfa