mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
882c504906
commit
7cb07a3c84
@ -34,6 +34,8 @@ namespace OrmTest.Demo
|
||||
{
|
||||
var db = GetInstance();
|
||||
|
||||
var getAll11 = db.Queryable<Student>().Where(it => SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Max(s=>s.Id)==1).ToList();
|
||||
|
||||
var getAll7 = db.Queryable<Student>().Where(it => SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Any()).ToList();
|
||||
|
||||
var getAll9 = db.Queryable<Student>().Where(it => SqlFunc.Subqueryable<School>().Where(s => s.Id == it.Id).Count()==1).ToList();
|
||||
|
@ -26,11 +26,19 @@ namespace SqlSugar
|
||||
return default(string);
|
||||
}
|
||||
|
||||
public TResult Max<TResult>(Func<T, TResult> expression) where TResult : struct
|
||||
{
|
||||
return default(TResult);
|
||||
}
|
||||
|
||||
public TResult Min<TResult>(Func<T, TResult> expression) where TResult : struct
|
||||
{
|
||||
return default(TResult);
|
||||
}
|
||||
public string Max(Func<T, string> expression)
|
||||
{
|
||||
return default(string);
|
||||
}
|
||||
|
||||
public string Min(Func<T, string> expression)
|
||||
{
|
||||
return default(string);
|
||||
|
Loading…
Reference in New Issue
Block a user