mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Update Oracle
This commit is contained in:
@@ -28,7 +28,7 @@ namespace SqlSugar
|
||||
public override string SqlTranslationRight { get { return "\""; } }
|
||||
public override string GetTranslationTableName(string entityName, bool isMapping = true)
|
||||
{
|
||||
return base.GetTranslationTableName(entityName, isMapping).ToUpper();
|
||||
return base.GetTranslationTableName(entityName, isMapping).ToUpper(IsUppper);
|
||||
}
|
||||
public override string GetTranslationColumnName(string columnName)
|
||||
{
|
||||
@@ -39,11 +39,11 @@ namespace SqlSugar
|
||||
return columnName;
|
||||
}
|
||||
else
|
||||
return base.GetTranslationColumnName(columnName).ToUpper();
|
||||
return base.GetTranslationColumnName(columnName).ToUpper(IsUppper);
|
||||
}
|
||||
public override string GetDbColumnName(string entityName, string propertyName)
|
||||
{
|
||||
return base.GetDbColumnName(entityName,propertyName).ToUpper();
|
||||
return base.GetDbColumnName(entityName,propertyName).ToUpper(IsUppper);
|
||||
}
|
||||
public override bool IsTranslationText(string name)
|
||||
{
|
||||
@@ -54,6 +54,20 @@ namespace SqlSugar
|
||||
var result = name.IsContainsIn(SqlTranslationLeft, SqlTranslationRight, UtilConstants.Space, ExpressionConst.LeftParenthesis, ExpressionConst.RightParenthesis);
|
||||
return result;
|
||||
}
|
||||
public bool IsUppper
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.SugarContext?.Context?.Context?.CurrentConnectionConfig?.MoreSettings == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return this.SugarContext?.Context?.Context?.CurrentConnectionConfig?.MoreSettings.IsAutoToUpper == true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public partial class OracleMethod : DefaultDbMethod, IDbMethods
|
||||
{
|
||||
|
Reference in New Issue
Block a user