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
c6e8900292
commit
db65a316b7
@ -14,6 +14,21 @@ namespace OrmTest
|
|||||||
{ id=it.Id,
|
{ id=it.Id,
|
||||||
x=it.Id==1
|
x=it.Id==1
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
Test(new UnitbModel());
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Test(UnitbModel model)
|
||||||
|
{
|
||||||
|
var db = NewUnitTest.Db;
|
||||||
|
db.CodeFirst.InitTables<UnitbModel>();
|
||||||
|
var xx = db.Queryable<UnitbModel>()
|
||||||
|
.Where(it=>it.isOk==!model.isOk)
|
||||||
|
.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class UnitbModel
|
||||||
|
{
|
||||||
|
public bool isOk { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user