예제 #1
0
 public static IEnumerable <T> Query <T>(this DataConnection connection, string sql, DataParameter parameter)
 {
     return(new CommandInfo(connection, sql, parameter).Query <T>());
 }
예제 #2
0
 public static CommandInfo SetCommand(DataConnection dataConnection, string commandText, DataParameter parameter)
 {
     return(new CommandInfo(dataConnection, commandText, parameter));
 }
예제 #3
0
 public static T Execute <T>(this DataConnection connection, string sql, DataParameter parameter)
 {
     return(new CommandInfo(connection, sql, parameter).Execute <T>());
 }
예제 #4
0
 public static DataReader ExecuteReader(this DataConnection connection, string sql, DataParameter parameter)
 {
     return(new CommandInfo(connection, sql, parameter).ExecuteReader());
 }
예제 #5
0
 public CommandInfo(DataConnection dataConnection, string commandText, DataParameter parameter)
 {
     DataConnection = dataConnection;
     CommandText    = commandText;
     Parameters     = new[] { parameter };
 }