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
b8439a5bd3
commit
bfd5a40599
@ -100,6 +100,12 @@ namespace OrmTest
|
|||||||
x2 = o2,
|
x2 = o2,
|
||||||
x3 = o3
|
x3 = o3
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
var list16=Db.Queryable<Order>().Select(x => new BoolTest1
|
||||||
|
{
|
||||||
|
// c=SqlFunc.Subqueryable<Order>().Where(z=>z.Id==x.Id).Count(),
|
||||||
|
a = !string.IsNullOrEmpty(x.Name)
|
||||||
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class IEnumerbleContains
|
public static class IEnumerbleContains
|
||||||
|
@ -34,6 +34,11 @@ namespace OrmTest
|
|||||||
ID = a.Id,
|
ID = a.Id,
|
||||||
真实名称 = !string.IsNullOrEmpty(a.Name) ? a.Name : a.Name
|
真实名称 = !string.IsNullOrEmpty(a.Name) ? a.Name : a.Name
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
db.Queryable<Order>().Select(x => new
|
||||||
|
{
|
||||||
|
// c=SqlFunc.Subqueryable<Order>().Where(z=>z.Id==x.Id).Count(),
|
||||||
|
x1 = !string.IsNullOrEmpty(x.Name)
|
||||||
|
}).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Unitadfaint21
|
public class Unitadfaint21
|
||||||
|
Loading…
Reference in New Issue
Block a user