Exemple #1
0
        public async Task <IEnumerable <T> > ExecuteReaderAsync <T>(Func <IDataRecord, T> readerFunc)
        {
            var reader = await ExecuteReaderAsync();

            return(DataReaderHelper.ReadWithFunction(reader, readerFunc));
        }
Exemple #2
0
        public IEnumerable <T> ExecuteReader <T>(Func <IDataRecord, T> readerFunc)
        {
            var reader = ExecuteReader();

            return(DataReaderHelper.ReadWithFunction(reader, readerFunc));
        }