From e0e9c37c057513b37bc93278245c82c76e1ab05a Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 27 Jul 2022 12:32:02 +0800 Subject: [PATCH] Update Access bug --- .../SqlSugar/ExpressionsToSql/Subquery/Items/SubTop.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubTop.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubTop.cs index 11d2e1739..5bd0d5961 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubTop.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubTop.cs @@ -35,7 +35,7 @@ namespace SqlSugar { get { - if (this.Context is SqlServerExpressionContext) + if (this.Context is SqlServerExpressionContext || this.Context.GetType().Name.Contains("Access")) { return 150; } @@ -53,7 +53,7 @@ namespace SqlSugar public string GetValue(Expression expression) { - if (this.Context is SqlServerExpressionContext) + if (this.Context is SqlServerExpressionContext|| this.Context.GetType().Name.Contains("Access")) { return "TOP 1"; }