mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Add unit test
This commit is contained in:
@@ -14,6 +14,21 @@ namespace OrmTest
|
||||
{ id=it.Id,
|
||||
x=it.Id==1
|
||||
}).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; }
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user