public ParameterSet AddParametersToCache(IDbCommand command) { var key = CreateHashKey(command); var parameters = new ParameterSet(command.Parameters); this.parameterCache[key] = parameters; command.Parameters.Clear(); return parameters; }
public static void SetParameterOrDbNull(this IDbCommand command, ParameterSet parameters, string parameterName, object value) { command.SetParameter(parameters, parameterName, value ?? DBNull.Value); }
public static void SetParameter(this IDbCommand command, ParameterSet parameters, string parameterName, object value) { parameters.SetParameter(command, parameterName, value); }