mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update QueryableByObject.Select
This commit is contained in:
@@ -184,7 +184,10 @@ namespace SqlSugar
|
|||||||
public QueryMethodInfo Select(string expShortName, FormattableString expSelect, Type resultType)
|
public QueryMethodInfo Select(string expShortName, FormattableString expSelect, Type resultType)
|
||||||
{
|
{
|
||||||
var method = QueryableObj.GetType().GetMyMethod("Select", 3, typeof(string),typeof(FormattableString),typeof(Type));
|
var method = QueryableObj.GetType().GetMyMethod("Select", 3, typeof(string),typeof(FormattableString),typeof(Type));
|
||||||
method= method.MakeGenericMethod(resultType);
|
if (method.IsGenericMethodDefinition)
|
||||||
|
{
|
||||||
|
method = method.MakeGenericMethod(resultType);
|
||||||
|
}
|
||||||
this.QueryableObj = method.Invoke(QueryableObj, new object[] { expShortName, expSelect, resultType });
|
this.QueryableObj = method.Invoke(QueryableObj, new object[] { expShortName, expSelect, resultType });
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user