예제 #1
0
        AsOneResultIAsyncEnumerable
        (
            this DbDataReader target
        )
        {
            var entries = target
                          .AsOneResultIAsyncEnumerable <IDataRecord>
                          (
                (rowIndex, columns, dataRecord) =>
            {
                return(dataRecord);
            }
                          );

            await foreach (var(rowIndex, columns, dataRecord) in entries)
            {
                yield
                return
                    (
                    rowIndex
                    , columns
                    , dataRecord
                    );
            }
        }