mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 10:24:55 +08:00
Update Access bug
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user