Optimized code

This commit is contained in:
sunkaixuan 2025-01-20 15:40:36 +08:00
parent c7035e535c
commit 304ce4c3e4

View File

@ -360,8 +360,9 @@ namespace SqlSugar
return this.AS(asName);
}
public ISugarQueryable<Type> OfType<Type>()
{
return this.Select<Type>().Select(this.Clone().QueryBuilder.GetSelectValue);
{
var selectValue = this.Clone().QueryBuilder.GetSelectValue;
return this.Select<Type>().Select(selectValue);
}
public ISugarQueryable<T> AsType(Type tableNameType)
{