mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +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));
|
||||
}
|
||||
if (IsDistinct)
|
||||
if (IsDistinct&&result?.StartsWith("DISTINCT ")!=true)
|
||||
{
|
||||
result = " DISTINCT " + result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user