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
56caf13214
commit
69dcff6981
@ -91,6 +91,9 @@ namespace OrmTest
|
|||||||
var list7= db.Queryable<UnitPerson011>().Select<int>("it", $"it.Address.Id ",typeof(UnitPerson011), typeof(int)).ToList();
|
var list7= db.Queryable<UnitPerson011>().Select<int>("it", $"it.Address.Id ",typeof(UnitPerson011), typeof(int)).ToList();
|
||||||
var list8 = db.Queryable<Order>().Select("it", $"new(it.Id as Id, it.Name)", typeof(Order)).ToList();
|
var list8 = db.Queryable<Order>().Select("it", $"new(it.Id as Id, it.Name)", typeof(Order)).ToList();
|
||||||
|
|
||||||
|
var list9= db.QueryableByObject(typeof(UnitPerson011))
|
||||||
|
.Select("it", $"new(it.Id as Id, it.Name)", typeof(Order)).ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
public class SqlSugarTypeProvider : DefaultDynamicLinqCustomTypeProvider
|
public class SqlSugarTypeProvider : DefaultDynamicLinqCustomTypeProvider
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user