Class ReaderColumn<T>
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
An expected column in the relational data reader.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class ReaderColumn<T> : ReaderColumn
Type Parameters
T
- Inheritance
-
ReaderColumn<T>
- Inherited Members
Remarks
See Implementation of database providers and extensions for more information and examples.
Constructors
ReaderColumn(bool, string?, IPropertyBase?, Func<DbDataReader, int[], T>)
Creates a new instance of the ReaderColumn<T> class.
public ReaderColumn(bool nullable, string? name, IPropertyBase? property, Func<DbDataReader, int[], T> getFieldValue)
Parameters
nullableboolA value indicating if the column is nullable.
namestringThe name of the column.
propertyIPropertyBaseThe property being read if any, null otherwise.
getFieldValueFunc<DbDataReader, int[], T>A function to get field value for the column from the reader.
Properties
GetFieldValue
The function to get field value for the column from the reader.
public virtual Func<DbDataReader, int[], T> GetFieldValue { get; }
Property Value
- Func<DbDataReader, int[], T>