Update Sqlqueryable.Select BUG

This commit is contained in:
sunkaixuan 2019-04-21 21:32:19 +08:00
parent 599456fcda
commit 48ef6ae142

View File

@ -554,6 +554,10 @@ namespace SqlSugar
result.Context = this.Context; result.Context = this.Context;
result.SqlBuilder = this.SqlBuilder; result.SqlBuilder = this.SqlBuilder;
QueryBuilder.SelectValue = selectValue; QueryBuilder.SelectValue = selectValue;
if (this.IsAs)
{
((QueryableProvider<TResult>)result).IsAs = true;
}
return result; return result;
} }
public virtual ISugarQueryable<T> Select(string selectValue) public virtual ISugarQueryable<T> Select(string selectValue)