Update QueryableByObject.Select

This commit is contained in:
sunkaixuan 2025-07-10 18:02:17 +08:00
parent da67fcad40
commit f5ad24aaf8

View File

@ -184,7 +184,10 @@ namespace SqlSugar
public QueryMethodInfo Select(string expShortName, FormattableString expSelect, Type resultType)
{
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 });
return this;
}