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
792161d61d
commit
6eb3c5b574
@ -72,6 +72,9 @@ namespace OrmTest
|
||||
var list4 = db.Queryable<UnitPerson011>().Where("it", $"it.Name={"a"}").ToList();
|
||||
//动态类+动态条件
|
||||
var list5=db.QueryableByObject(typeof(UnitPerson011)).Where("it", $"it.Address.Id=={1}").ToList();
|
||||
|
||||
var list6 = db.Queryable<UnitPerson011>()
|
||||
.LeftJoin<Order>((it, y) => it.Id == y.Id).Where("it", $"SqlFunc.Exists(it.Address.Id)").OrderBy((it, y) => it.Id).ToList();
|
||||
}
|
||||
public class SqlSugarTypeProvider : DefaultDynamicLinqCustomTypeProvider
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user