示例#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 };
 }