Я хотел бы передать свойства poco в хранимую процедуру (обновить и добавить объект) С более ранними версиями Enterprise Library (например, v2.0) я могу сделать что-то вроде этого :Как обновить poco с помощью Enterprise-библиотеки 5.0
var arrParam = SqlHelperParameterCache.GetSpParameterSet(ConnectionString(),
SprocNameSet);
for (int x = 0; x <= arrParam.Length - 1; x++)
{
System.Reflection.PropertyInfo pi =
dataObject.GetType()
.GetProperty(arrParam[x].ParameterName
.Substring(1, Convert.ToInt32(arrParam[x].ParameterName.Length) - 1));
arrParam[x].Value = pi.GetValue(myDataObject, null);
}
SqlHelper.ExecuteScalar(ConnectionString(),
CommandType.StoredProcedure,
SprocNameSet,
arrParam);
Но с версии 5.0 (возможно раньше?) метод SqlHelperParameterCache.GetSpParameterSet теряется.
Вопрос: как я могу получить хранимые-proc-Parameters и заполнить их значениями poco-properties?