Beispiel #1
0
 /// <summary>
 /// 转换参数
 /// </summary>
 /// <param name="db"></param>
 /// <returns></returns>
 public bool Parse(IDbDialect db)
 {
     if (this.parameters == null)
     {
         if (this.dataArray != null)
         {
             this.parameters = DataUtil.ToParams(db, this.dataArray);
             return(true);
         }
         if (this.dataMap != null)
         {
             this.parameters = DataUtil.ParameterMapToArray(db, this.dataMap);
             return(true);
         }
     }
     return(false);
 }
Beispiel #2
0
 public DbParameter[] CreateParametersFromArray(object[,] parameters)
 {
     return(DataUtil.ToParams(this.GetDialect(), parameters));
 }