Exemple #1
0
 /// <summary>
 /// 构建错误输出参数
 /// </summary>
 /// <param name="param"></param>
 public static void BuildErrorParameter(this IList <SqlParameter> param)
 {
     param.Add(ParameterHelper.NewOutParameter("ErrorDescribe", SqlDbType.NVarChar));
 }
Exemple #2
0
 /// <summary>
 /// 将一个对象转换为SQL Server参数列表对象
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="excludePropertiyNames">需要排除的属性名称</param>
 /// <returns></returns>
 public static IList <SqlParameter> ToInPrarmterList(this object obj, params string[] excludePropertiyNames)
 {
     return(ParameterHelper.ConvertObjectToParameterList(obj, excludePropertiyNames));
 }