Inheritance: System.Data.Common.DbDataReader
Esempio n. 1
0
        protected override Task <DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
        {
            var reader = new MockDbDataReaderWrapper(this.command.ExecuteReader(behavior));

            return(Task.FromResult((DbDataReader)reader));
        }
        protected override Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
        {
            var reader = new MockDbDataReaderWrapper(this.command.ExecuteReader(behavior));

            return Task.FromResult((DbDataReader)reader);
        }