Example #1
0
 /// <summary>
 /// Creates a separate parameter for each value in the specified values and adds the parameter to the supplied command.
 /// </summary>
 /// <param name="this">The command the parameters are being appended.</param>
 /// <param name="values">The values for the parameters.</param>
 /// <param name="parameterName">Name of the parameter.</param>
 public static void AddParameters(this IDbCommand @this, string parameterName, ICollection values)
 {
     DbUtility.Parameterize(@this, values, parameterName);
 }
Example #2
0
 /// <summary>
 /// Creates a separate parameter for each value in the specified values and adds the parameter to the supplied command.
 /// </summary>
 /// <param name="this">The command the parameters are being appended.</param>
 /// <param name="values">The values for the parameters.</param>
 /// <param name="parameterName">Name of the parameter.</param>
 /// <param name="dbType">The Sql Server specific data type.</param>
 /// <param name="maxSizeOfData">The max size of data.</param>
 public static void AddParameters(this IDbCommand @this, string parameterName, ICollection values, SqlDbType dbType, int maxSizeOfData)
 {
     DbUtility.Parameterize(@this, values, parameterName, dbType, maxSizeOfData);
 }