diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionResult.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionResult.cs index 9e8e2c3ae..5d24e5f54 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionResult.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionResult.cs @@ -8,6 +8,7 @@ namespace SqlSugar public class ExpressionResult { public bool IsLockCurrentParameter { get; set; } + public bool IsUpper { get; set; } private ExpressionParameter _CurrentParameter; public ExpressionParameter CurrentParameter { @@ -55,22 +56,32 @@ namespace SqlSugar public string GetString() { if (_Result == null) return null; - return _Result.ToString().TrimEnd(','); + if (IsUpper) + return _Result.ToString().ToUpper().TrimEnd(','); + else + return _Result.ToString().TrimEnd(','); } #region functions public string[] GetResultArray() { if (this._Result == null) return null; - return this.Result.ToString().TrimEnd(',').Split(','); + if (IsUpper) + return this.Result.ToString().ToUpper().TrimEnd(',').Split(','); + else + return this.Result.ToString().TrimEnd(',').Split(','); } public string GetResultString() { if (this._Result == null) return null; - if (this._ResolveExpressType.IsIn(ResolveExpressType.SelectMultiple, ResolveExpressType.SelectSingle)) { + if (this._ResolveExpressType.IsIn(ResolveExpressType.SelectMultiple, ResolveExpressType.SelectSingle)) + { return this.Result.ToString().TrimEnd(','); } - return this.Result.ToString(); + if (IsUpper) + return this.Result.ToString().ToUpper(); + else + return this.Result.ToString(); } public void TrimEnd() diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs index ea25a370a..eec04ce3c 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs @@ -15,6 +15,7 @@ namespace SqlSugar public OracleExpressionContext() { base.DbMehtods = new OracleMethod(); + base.Result.IsUpper = true; } public override string GetTranslationTableName(string entityName, bool isMapping = true) {