示例#1
0
 public System.Data.IDataReader ExecuteReader(DataCommandDefinition command, System.Data.CommandBehavior commandBehavior)
 {
     return(Connection.ExecuteReader(
                new CommandDefinition(command.CommandText,
                                      command.Parameters,
                                      command.Transaction,
                                      command.CommandTimeout,
                                      command.CommandType,
                                      ToCommandFlags(command.Flags)), commandBehavior));
 }
示例#2
0
 public IEnumerable <T> Query <T>(DataCommandDefinition command)
 {
     return(Connection.Query <T>(
                new CommandDefinition(command.CommandText,
                                      command.Parameters,
                                      command.Transaction,
                                      command.CommandTimeout,
                                      command.CommandType,
                                      ToCommandFlags(command.Flags))));
 }
示例#3
0
 public T ExecuteScalar <T>(DataCommandDefinition command)
 {
     return(Connection.ExecuteScalar <T>(
                new CommandDefinition(command.CommandText,
                                      command.Parameters,
                                      command.Transaction,
                                      command.CommandTimeout,
                                      command.CommandType,
                                      ToCommandFlags(command.Flags))));
 }