Synchronization code

This commit is contained in:
sunkaixuan 2023-05-29 15:55:18 +08:00
parent ef28d6d955
commit 74a56f3619

View File

@ -38,6 +38,10 @@ namespace SqlSugar
result =this.Context.SqlQueryable<object>(result).Skip(Skip??0).Take(Take??0).ToSql().Key;
}
if (IsDistinct && oldTake == 1 && oldSkip == null)
{
result = result.Replace(" TOP 1 DISTINCT", " TOP 1 ");
}
if (result.IndexOf("-- No table") > 0)
{