예제 #1
0
 public static BatcherDataReaderWrapper Create(IBatcher batcher, DbCommand command)
 {
     return(new BatcherDataReaderWrapper(batcher, command)
     {
         reader = batcher.ExecuteReader(command)
     });
 }
 public BatcherDataReaderWrapper(IBatcher batcher, DbCommand command)
 {
     if (batcher == null)
     {
         throw new ArgumentNullException("batcher");
     }
     if (command == null)
     {
         throw new ArgumentNullException("command");
     }
     this.batcher = batcher;
     this.command = command;
     reader       = batcher.ExecuteReader(command);
 }
		public BatcherDataReaderWrapper(IBatcher batcher, IDbCommand command)
		{
			if (batcher == null)
			{
				throw new ArgumentNullException("batcher");
			}
			if (command == null)
			{
				throw new ArgumentNullException("command");
			}
			this.batcher = batcher;
			this.command = command;
			reader = batcher.ExecuteReader(command);
		}