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
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
nullable
boolA value indicating if the column is nullable.
name
stringThe name of the column.
property
IPropertyBaseThe property being read if any, null otherwise.
getFieldValue
Func<DbDataReader, int[], T>A function to get field value for the column from the reader.
ReaderColumn(bool, string, Func<DbDataReader, int[], T>)
Creates a new instance of the ReaderColumn<T> class.
[Obsolete("Use constructor which also takes IPropertyBase.")]
public ReaderColumn(bool nullable, string name, Func<DbDataReader, int[], T> getFieldValue)
Parameters
nullable
boolA value indicating if the column is nullable.
name
stringThe name of the column.
getFieldValue
Func<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>