|
|
@ -46,21 +46,22 @@ internal abstract class CommandBuilder
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var parameter in existing.Parameters)
|
|
|
|
foreach (var parameter in existing.Parameters)
|
|
|
|
{
|
|
|
|
|
|
|
|
if (parameter.Direction == ParameterDirection.Input)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (ResolveProperty(parameter.Name) is PropertyInfo property)
|
|
|
|
if (ResolveProperty(parameter.Name) is PropertyInfo property)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
result.AddParameter(new StorageParameter
|
|
|
|
result.AddParameter(new StorageParameter
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Value = GetValue(property),
|
|
|
|
Value = parameter.Direction switch
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ParameterDirection.Input => GetValue(property),
|
|
|
|
|
|
|
|
_ => default
|
|
|
|
|
|
|
|
},
|
|
|
|
Name = parameter.Name,
|
|
|
|
Name = parameter.Name,
|
|
|
|
Type = parameter.Type,
|
|
|
|
Type = parameter.Type,
|
|
|
|
Direction = parameter.Direction
|
|
|
|
Direction = parameter.Direction
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|