mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
Update QueryableByObject.Select
This commit is contained in:
parent
da67fcad40
commit
f5ad24aaf8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user