mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-15 20:49:31 +08:00
Updte exp to sql
This commit is contained in:
parent
721fc3246d
commit
c362b7896c
@ -158,6 +158,7 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Override methods
|
||||
public virtual string GetLimit() { return null; }
|
||||
public virtual string GetTranslationTableName(string entityName, bool isMapping = true)
|
||||
{
|
||||
Check.ArgumentNullException(entityName, string.Format(ErrorMessage.ObjNotExist, "Table Name"));
|
||||
|
@ -61,9 +61,9 @@ namespace SqlSugar
|
||||
{
|
||||
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
||||
}
|
||||
else if (this.Context is PostgreSQLExpressionContext)
|
||||
else if (this.Context.GetLimit()!=null)
|
||||
{
|
||||
return "limit 1";
|
||||
return this.Context.GetLimit();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user