mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Queryable.Distinct().Select(exp,true)
This commit is contained in:
@@ -811,7 +811,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
this.SelectCacheKey = this.SelectCacheKey + string.Join("-", this._JoinQueryInfos.Select(it => it.TableName));
|
this.SelectCacheKey = this.SelectCacheKey + string.Join("-", this._JoinQueryInfos.Select(it => it.TableName));
|
||||||
}
|
}
|
||||||
if (IsDistinct)
|
if (IsDistinct&&result?.StartsWith("DISTINCT ")!=true)
|
||||||
{
|
{
|
||||||
result = " DISTINCT " + result;
|
result = " DISTINCT " + result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user