mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-24 08:33:16 +08:00
Update db.QueryableByObject
This commit is contained in:
@@ -236,6 +236,18 @@ namespace SqlSugar
|
|||||||
this.QueryableObj = method.Invoke(QueryableObj, new object[] { ignoreColumns });
|
this.QueryableObj = method.Invoke(QueryableObj, new object[] { ignoreColumns });
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
public QueryMethodInfo Take(int takeNumber)
|
||||||
|
{
|
||||||
|
var method = QueryableObj.GetType().GetMyMethod("Take", 1, typeof(int));
|
||||||
|
this.QueryableObj = method.Invoke(QueryableObj, new object[] { takeNumber });
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public QueryMethodInfo Skip(int skipNumber)
|
||||||
|
{
|
||||||
|
var method = QueryableObj.GetType().GetMyMethod("Skip", 1, typeof(int));
|
||||||
|
this.QueryableObj = method.Invoke(QueryableObj, new object[] { skipNumber });
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public QueryMethodInfo Includes(string navProperyName,string thenNavProperyName2)
|
public QueryMethodInfo Includes(string navProperyName,string thenNavProperyName2)
|
||||||
{
|
{
|
||||||
var method = QueryableObj.GetType().GetMyMethod("IncludesByNameString", 2, typeof(string),typeof(string));
|
var method = QueryableObj.GetType().GetMyMethod("IncludesByNameString", 2, typeof(string),typeof(string));
|
||||||
|
|||||||
Reference in New Issue
Block a user