Table of Contents

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
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

type Type

The CLR type of the column.

nullable bool

A value indicating if the column is nullable.

name string

The 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

type Type

The CLR type of the column.

nullable bool

A value indicating if the column is nullable.

name string

The name of the column.

property IPropertyBase

The property being read if any, null otherwise.

Properties

IsNullable

A value indicating if the column is nullable.

public virtual bool IsNullable { get; }

Property Value

bool

Name

The name of the column.

public virtual string Name { get; }

Property Value

string

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

Type

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

type Type

The type of the column.

nullable bool

Whether the column can contain null values.

columnName string

The column name if it is used to access the column values, null otherwise.

property IPropertyBase

The property being read if any, null otherwise.

readFunc object

A 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

type Type

The type of the column.

nullable bool

Whether the column can contain null values.

columnName string

The column name if it is used to access the column values, null otherwise.

readFunc object

A used to get the field value for this column.

Returns

ReaderColumn

An instance of ReaderColumn<T>.