コード例 #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 };
 }