mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 18:48:09 +08:00
Optimized code
This commit is contained in:
@@ -360,8 +360,9 @@ namespace SqlSugar
|
|||||||
return this.AS(asName);
|
return this.AS(asName);
|
||||||
}
|
}
|
||||||
public ISugarQueryable<Type> OfType<Type>()
|
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)
|
public ISugarQueryable<T> AsType(Type tableNameType)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user