Class ReaderColumn
- 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 abstract class ReaderColumn
- Inheritance
-
ReaderColumn
- Derived
-
ReaderColumn<T>
- Inherited Members
Constructors
ReaderColumn(Type, bool, string)
Creates a new instance of the ReaderColumn class.
[Obsolete("Use constructor which also takes IPropertyBase.")]
protected ReaderColumn(Type type, bool nullable, string name)
Parameters
typeTypeThe CLR type of the column.
nullableboolA value indicating if the column is nullable.
namestringThe name of the column.
ReaderColumn(Type, bool, string, IPropertyBase)
Creates a new instance of the ReaderColumn class.
protected ReaderColumn(Type type, bool nullable, string name, IPropertyBase property)
Parameters
typeTypeThe CLR type of the column.
nullableboolA value indicating if the column is nullable.
namestringThe name of the column.
propertyIPropertyBaseThe property being read if any, null otherwise.
Properties
IsNullable
A value indicating if the column is nullable.
public virtual bool IsNullable { get; }
Property Value
Name
The name of the column.
public virtual string Name { get; }
Property Value
Property
The property being read if any, null otherwise.
public virtual IPropertyBase Property { get; }
Property Value
- IPropertyBase
Type
The CLR type of the column.
public virtual Type Type { get; }
Property Value
Methods
Create(Type, bool, string, IPropertyBase, object)
Creates an instance of ReaderColumn<T>.
public static ReaderColumn Create(Type type, bool nullable, string columnName, IPropertyBase property, object readFunc)
Parameters
typeTypeThe type of the column.
nullableboolWhether the column can contain null values.
columnNamestringThe column name if it is used to access the column values, null otherwise.
propertyIPropertyBaseThe property being read if any, null otherwise.
readFuncobjectA
used to get the field value for this column.
Returns
- ReaderColumn
An instance of ReaderColumn<T>.
Create(Type, bool, string, object)
Creates an instance of ReaderColumn<T>.
[Obsolete("Use method which also takes IPropertyBase.")]
public static ReaderColumn Create(Type type, bool nullable, string columnName, object readFunc)
Parameters
typeTypeThe type of the column.
nullableboolWhether the column can contain null values.
columnNamestringThe column name if it is used to access the column values, null otherwise.
readFuncobjectA
used to get the field value for this column.
Returns
- ReaderColumn
An instance of ReaderColumn<T>.