public static IEnumerable <T> Query <T>(this DataConnection connection, string sql, DataParameter parameter) { return(new CommandInfo(connection, sql, parameter).Query <T>()); }
public static CommandInfo SetCommand(DataConnection dataConnection, string commandText, DataParameter parameter) { return(new CommandInfo(dataConnection, commandText, parameter)); }
public static T Execute <T>(this DataConnection connection, string sql, DataParameter parameter) { return(new CommandInfo(connection, sql, parameter).Execute <T>()); }
public static DataReader ExecuteReader(this DataConnection connection, string sql, DataParameter parameter) { return(new CommandInfo(connection, sql, parameter).ExecuteReader()); }
public CommandInfo(DataConnection dataConnection, string commandText, DataParameter parameter) { DataConnection = dataConnection; CommandText = commandText; Parameters = new[] { parameter }; }