Update Access bug

This commit is contained in:
sunkaixuan
2022-07-27 12:32:02 +08:00
parent 5e2f53e04d
commit e0e9c37c05

View File

@@ -35,7 +35,7 @@ namespace SqlSugar
{ {
get get
{ {
if (this.Context is SqlServerExpressionContext) if (this.Context is SqlServerExpressionContext || this.Context.GetType().Name.Contains("Access"))
{ {
return 150; return 150;
} }
@@ -53,7 +53,7 @@ namespace SqlSugar
public string GetValue(Expression expression) public string GetValue(Expression expression)
{ {
if (this.Context is SqlServerExpressionContext) if (this.Context is SqlServerExpressionContext|| this.Context.GetType().Name.Contains("Access"))
{ {
return "TOP 1"; return "TOP 1";
} }