Share via


ReaderColumn.Create Method

Definition

Overloads

Create(Type, Boolean, String, Object)
Obsolete.

Creates an instance of ReaderColumn<T>.

Create(Type, Boolean, String, IPropertyBase, Object)

Creates an instance of ReaderColumn<T>.

Create(Type, Boolean, String, Object)

Caution

Use method which also takes IPropertyBase.

Creates an instance of ReaderColumn<T>.

public static Microsoft.EntityFrameworkCore.Storage.ReaderColumn Create (Type type, bool nullable, string columnName, object readFunc);
[System.Obsolete("Use method which also takes IPropertyBase.")]
public static Microsoft.EntityFrameworkCore.Storage.ReaderColumn Create (Type type, bool nullable, string columnName, object readFunc);
[System.Obsolete("Use method which also takes IPropertyBase.")]
public static Microsoft.EntityFrameworkCore.Storage.ReaderColumn Create (Type type, bool nullable, string? columnName, object readFunc);
static member Create : Type * bool * string * obj -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn
[<System.Obsolete("Use method which also takes IPropertyBase.")>]
static member Create : Type * bool * string * obj -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn
Public Shared Function Create (type As Type, nullable As Boolean, columnName As String, readFunc As Object) As ReaderColumn

Parameters

type
Type

The type of the column.

nullable
Boolean

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 System.Func{DbDataReader, Int32[], T} used to get the field value for this column.

Returns

An instance of ReaderColumn<T>.

Attributes

Applies to

Create(Type, Boolean, String, IPropertyBase, Object)

Creates an instance of ReaderColumn<T>.

public static Microsoft.EntityFrameworkCore.Storage.ReaderColumn Create (Type type, bool nullable, string columnName, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property, object readFunc);
public static Microsoft.EntityFrameworkCore.Storage.ReaderColumn Create (Type type, bool nullable, string? columnName, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase? property, object readFunc);
static member Create : Type * bool * string * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * obj -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn
Public Shared Function Create (type As Type, nullable As Boolean, columnName As String, property As IPropertyBase, readFunc As Object) As ReaderColumn

Parameters

type
Type

The type of the column.

nullable
Boolean

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 System.Func{DbDataReader, Int32[], T} used to get the field value for this column.

Returns

An instance of ReaderColumn<T>.

Applies to