public void SetParameter(ParameterDirection direction, DbType dbType, string param, object value) { ParameterClause parameter = new ParameterClause(direction, dbType, param, value); parameters.Add(parameter); }
private DbParameter CreateDbParameter(DbCommand cmd, ParameterClause param) { DbParameter sqlParam = cmd.CreateParameter(); sqlParam.ParameterName = param.Name; sqlParam.DbType = param.DbType; sqlParam.Value = ReferenceEquals(param.Argument, null) ? DBNull.Value : param.Argument; sqlParam.Direction = param.Direction; sqlParam.FixParameterRange(); return(sqlParam); }
public void SetParameter(string param, DbType dbType, object value) { ParameterClause parameter = new ParameterClause(param, dbType, value); parameters.Add(parameter); }