Update Oracle

This commit is contained in:
sunkaixuan 2017-08-04 00:56:08 +08:00
parent 83a8e8e8f4
commit 051e941f95
2 changed files with 16 additions and 4 deletions

View File

@ -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()

View File

@ -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)
{