|
|
@ -116,11 +116,35 @@ namespace SqlSugar |
|
|
|
Code = entityDb.Code, |
|
|
|
TableName = entityDb.TableName, |
|
|
|
Key = entityDb.Key, |
|
|
|
Parameter = entityDb.Parameter, |
|
|
|
Parameter = new List<SugarParameter>(), |
|
|
|
Type = entityDb.Type, |
|
|
|
Value = entityDb.Value, |
|
|
|
Where = entityDb.Where |
|
|
|
}; |
|
|
|
if (entityDb.Parameter != null && entityDb.Parameter.Any()) |
|
|
|
{ |
|
|
|
foreach (var item in entityDb.Parameter) |
|
|
|
{ |
|
|
|
entity.Parameter.Add(new SugarParameter("", null) { |
|
|
|
DbType=item.DbType, |
|
|
|
Direction=item.Direction, |
|
|
|
IsArray=item.IsArray, |
|
|
|
IsJson=item.IsJson, |
|
|
|
IsNullable=item.IsNullable, |
|
|
|
IsRefCursor=item.IsRefCursor, |
|
|
|
ParameterName=item.ParameterName, |
|
|
|
Size=item.Size, |
|
|
|
SourceColumn=item.SourceColumn, |
|
|
|
SourceColumnNullMapping=item.SourceColumnNullMapping, |
|
|
|
SourceVersion=item.SourceVersion, |
|
|
|
TempDate=item.TempDate, |
|
|
|
TypeName=item.TypeName, |
|
|
|
Value=item.Value, |
|
|
|
_Size=item._Size |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
string sql = " (SELECT {0} FROM {1} WHERE {2}={3}"; |
|
|
|
if (ExpressionTool.IsUnConvertExpress(exp)) |
|
|
|
{ |
|
|
|