- 完善 MapType byte[] 对 Contains/Parse 表达式解析的处理;#178

This commit is contained in:
28810
2020-01-07 18:16:37 +08:00
parent 0addfc638a
commit 0dec7ff587
17 changed files with 34 additions and 19 deletions

View File

@ -41,7 +41,9 @@ namespace FreeSql.Oracle
case "System.UInt16":
case "System.UInt32":
case "System.UInt64": return $"cast({getExp(operandExp)} as number)";
case "System.Guid": return $"substr(to_char({getExp(operandExp)}), 1, 36)";
case "System.Guid":
if (tsc.mapType == typeof(byte[])) return $"hextoraw({getExp(operandExp)})";
return $"to_char({getExp(operandExp)})";
}
}
break;
@ -68,7 +70,9 @@ namespace FreeSql.Oracle
case "System.UInt16":
case "System.UInt32":
case "System.UInt64": return $"cast({getExp(callExp.Arguments[0])} as number)";
case "System.Guid": return $"to_char({getExp(callExp.Arguments[0])})";
case "System.Guid":
if (tsc.mapType == typeof(byte[])) return $"hextoraw({getExp(callExp.Arguments[0])})";
return $"to_char({getExp(callExp.Arguments[0])})";
}
return null;
case "NewGuid":