mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 20:27:56 +08:00
Update Oracle
This commit is contained in:
parent
83a8e8e8f4
commit
051e941f95
@ -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()
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user