Class CoreExtensions
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
Core extensions, not specific to a database provider, for building a command and retrieving data.
public static class CoreExtensions
- Inheritance
-
CoreExtensions
- Inherited Members
Methods
- AsDictionaryRows(IExecuteReader)
Reads each row of a query without a model, as a DictionaryRow (the values and the column names).
- AsDictionaryRows(DataTable)
Reads each row of a table without a model, as a DictionaryRow (the values and the column names).
- AsDictionaryRows(IDataReader)
Reads each row of a reader without a model, as a DictionaryRow (the values and the column names).
- AsDictionaryRows(IDbCommand)
Reads each row of a query without a model, as a DictionaryRow (the values and the column names).
- AsEnumerable(DataColumnCollection)
Enumerates a DataColumnCollection as a generic IEnumerable<T>.
- AsEnumerable(DataRowCollection)
Enumerates a DataRowCollection as a generic IEnumerable<T>.
- AsObjectArrays(IExecuteReader)
Reads each row of a query without a model, as an array of its values.
- AsObjectArrays(DataTable)
Reads each row of a table without a model, as an array of its values.
- AsObjectArrays(IDataReader)
Reads each row of a reader without a model, as an array of its values.
- AsObjectArrays(IDbCommand)
Reads each row of a query without a model, as an array of its values.
- CopyToDBNullAsNull(ReadOnlySpan<object?>, Memory<object?>)
Copies the contents of the
valuesspan to thetargetspan with any DBNull values converted to null.
- CopyToDBNullAsNull(ReadOnlySpan<object?>, Span<object?>)
Copies the contents of the
valuesspan to thetargetspan with any DBNull values converted to null.
- CopyToDBNullAsNull(Span<object?>, Memory<object?>)
Copies the contents of the
valuesspan to thetargetspan with any DBNull values converted to null.
- CopyToDBNullAsNull(Span<object?>, Span<object?>)
Copies the contents of the
valuesspan to thetargetspan with any DBNull values converted to null.
- DBNullToNull(IEnumerable<object?>)
Yields each value of an enumerable, with any DBNull converted to null.
- DBNullToNullCopy(object?[])
Returns a copy of
valueswith any DBNull values converted to null.
- DBNullToNullCopy(ReadOnlySpan<object?>)
Returns a copy of the contents of this span as an array with any DBNull values converted to null.
- DBNullToNullCopy(Span<object?>)
Returns a copy of the contents of this span as an array with any DBNull values converted to null.
- Map<T>(IExecuteReader)
Locks in a mapping to model type
Tand returns a deferred MappedQuery<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(IExecuteReader, RowMap<T>?)
Locks in a mapping to model type
Tand returns a deferred MappedQuery<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(IExecuteReader, Func<IDataRecord, T>)
Locks in a custom projection and returns a deferred MappedQuery<T>. Nothing runs until a terminal is invoked;
selectoris applied per row as the reader streams.
- Map<T>(DataTable)
Locks in a mapping to model type
Tover the rows of a DataTable you already have and returns a deferred MappedTable<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(DataTable, RowMap<T>?)
Locks in a mapping to model type
Tover the rows of a DataTable you already have and returns a deferred MappedTable<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(DataTable, Func<IDataRecord, T>)
Locks in a custom projection over the rows of a DataTable you already have and returns a deferred MappedTable<T>. Nothing runs until a terminal is invoked;
selectoris applied per row as the table is read.
- Map<T>(IDataReader)
Locks in a mapping to model type
Tover a data reader the caller owns and returns a deferred MappedReader<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(IDataReader, RowMap<T>?)
Locks in a mapping to model type
Tover a data reader the caller owns and returns a deferred MappedReader<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(IDataReader, Func<IDataRecord, T>)
Locks in a custom projection over a data reader the caller owns and returns a deferred MappedReader<T>. Nothing runs until a terminal is invoked;
selectoris applied per row as the reader streams.
- Map<T>(IDbCommand)
Locks in a mapping to model type
Tover a command and returns a deferred MappedCommand<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(IDbCommand, RowMap<T>?)
Locks in a mapping to model type
Tover a command and returns a deferred MappedCommand<T>. Nothing runs until a terminal, such as ToListAsync(CancellationToken), is invoked.
- Map<T>(IDbCommand, Func<IDataRecord, T>)
Locks in a custom projection over a command and returns a deferred MappedCommand<T>. Nothing runs until a terminal is invoked;
selectoris applied per row as the reader streams.
- SingleResult(IExecuteReader)
Opts an expressive command out of the read-through, so that the query reads only the first result set.
- SingleResult(IDbCommand)
Opts a command out of the read-through, so that the query reads only the first result set.