public void Add(SpryParameters parameters) { if (parameters != null && parameters._parameters.Any()) { _parameters.AddRange(parameters._parameters); } }
public TColType ExecuteScalar <TColType>(IDbConnection connection, CommandType commandType = CommandType.Text, SpryParameters parameters = null) { return(connection.ExecuteScalar <TColType>(_query, parameters, commandType: commandType)); }
public IEnumerable <dynamic> Query(IDbConnection connection, CommandType commandType = CommandType.Text, SpryParameters parameters = null) { return(connection.Query(_query, parameters, commandType: commandType)); }
public int Execute(IDbConnection connection, CommandType commandType = CommandType.Text, SpryParameters parameters = null) { return(connection.Execute(_query, parameters, commandType: commandType)); }