Optimized code

This commit is contained in:
sunkaixuan
2025-01-20 15:38:46 +08:00
parent 8592f1d7f0
commit c7035e535c

View File

@@ -361,7 +361,7 @@ namespace SqlSugar
} }
public ISugarQueryable<Type> OfType<Type>() public ISugarQueryable<Type> OfType<Type>()
{ {
return this.Select<Type>().Select("*"); return this.Select<Type>().Select(this.Clone().QueryBuilder.GetSelectValue);
} }
public ISugarQueryable<T> AsType(Type tableNameType) public ISugarQueryable<T> AsType(Type tableNameType)
{ {