Example #1
0
 private void CreateParamster(object paramters, ref List <DbParameter> param)
 {
     if (!paramters.IsNullOrSpace())
     {
         PropertyInfo[] properties = paramters.GetType().GetProperties();
         foreach (PropertyInfo info in properties)
         {
             param.Add(dbprovider.CreateParameter(info.Name, info.GetValue(paramters)));
         }
     }
 }