Update db.QueryableByObject

This commit is contained in:
sunkaixuan
2025-11-23 11:57:30 +08:00
parent 3abf762fc4
commit e7d45a9a93

View File

@@ -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));