Class
ExcelDocumentMappingExtensions
OfficeIMO.Excel
Typed row projections over a loaded Excel document.
Inheritance
- object
- ExcelDocumentMappingExtensions
Methods
RowsAsParallel``1 3 overloads
public static IEnumerable<T> RowsAsParallel<T>(ExcelDocument document, ParallelRowMappingOptions? parallelOptions = null, ExcelReaderOptions? options = null, CancellationToken cancellationToken = default) #Projects rows in bounded parallel batches, preserving source order.
Type Parameters
- T
Parameters
- document OfficeIMO.Excel.ExcelDocument
- parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null
- options OfficeIMO.Excel.ExcelReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T>public static IEnumerable<T?> RowsAsParallel<T>(ExcelDocument document, Action<RowMapper<T?>> configure, ParallelRowMappingOptions? parallelOptions = null, ExcelReaderOptions? options = null, CancellationToken cancellationToken = default) #Projects rows in bounded parallel batches, preserving source order.
Type Parameters
- T
Parameters
- document OfficeIMO.Excel.ExcelDocument
- configure System.Action<OfficeIMO.Data.RowMapper<T?>>
- parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null
- options OfficeIMO.Excel.ExcelReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>public static IEnumerable<T?> RowsAsParallel<T>(ExcelDocument document, Func<IDataRecord, T?> factory, ParallelRowMappingOptions? parallelOptions = null, ExcelReaderOptions? options = null, CancellationToken cancellationToken = default) #Projects rows in bounded parallel batches, preserving source order.
Type Parameters
- T
Parameters
- document OfficeIMO.Excel.ExcelDocument
- factory System.Func<System.Data.IDataRecord, T?>
- parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null
- options OfficeIMO.Excel.ExcelReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>RowsAs``1 3 overloads
public static IEnumerable<T?> RowsAs<T>(ExcelDocument document, ExcelReaderOptions? options = null, CancellationToken cancellationToken = default) #Projects rows through the shared data-reader mapping contract.
Type Parameters
- T
Parameters
- document OfficeIMO.Excel.ExcelDocument
- options OfficeIMO.Excel.ExcelReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>public static IEnumerable<T?> RowsAs<T>(ExcelDocument document, Action<RowMapper<T?>> configure, ExcelReaderOptions? options = null, CancellationToken cancellationToken = default) #Projects rows through the shared data-reader mapping contract.
Type Parameters
- T
Parameters
- document OfficeIMO.Excel.ExcelDocument
- configure System.Action<OfficeIMO.Data.RowMapper<T?>>
- options OfficeIMO.Excel.ExcelReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>public static IEnumerable<T?> RowsAs<T>(ExcelDocument document, Func<IDataRecord, T?> factory, ExcelReaderOptions? options = null, CancellationToken cancellationToken = default) #Projects rows through the shared data-reader mapping contract.
Type Parameters
- T
Parameters
- document OfficeIMO.Excel.ExcelDocument
- factory System.Func<System.Data.IDataRecord, T?>
- options OfficeIMO.Excel.ExcelReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>