mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-15 20:49:31 +08:00
Update .net core project
This commit is contained in:
parent
c362b7896c
commit
1eae189b6e
@ -158,6 +158,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Override methods
|
#region Override methods
|
||||||
|
public virtual string GetLimit() { return null; }
|
||||||
public virtual string GetTranslationTableName(string entityName, bool isMapping = true)
|
public virtual string GetTranslationTableName(string entityName, bool isMapping = true)
|
||||||
{
|
{
|
||||||
Check.ArgumentNullException(entityName, string.Format(ErrorMessage.ObjNotExist, "Table Name"));
|
Check.ArgumentNullException(entityName, string.Format(ErrorMessage.ObjNotExist, "Table Name"));
|
||||||
|
@ -61,9 +61,9 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user