Compartilhar via


ReaderColumn.Create Método

Definição

Sobrecargas

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

Cria uma instância de ReaderColumn<T>.

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

Cria uma instância de ReaderColumn<T>.

Create(Type, Boolean, String, Object)

Cuidado

Use method which also takes IPropertyBase.

Cria uma instância de 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

Parâmetros

type
Type

O tipo da coluna.

nullable
Boolean

Se a coluna pode conter valores null.

columnName
String

Caso contrário, null o nome da coluna será usado para acessar os valores da coluna.

readFunc
Object

Um System.Func{DbDataReader, Int32[], T} usado para obter o valor do campo para esta coluna.

Retornos

Uma instância de ReaderColumn<T>.

Atributos

Aplica-se a

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

Cria uma instância de 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

Parâmetros

type
Type

O tipo da coluna.

nullable
Boolean

Se a coluna pode conter valores null.

columnName
String

Caso contrário, null o nome da coluna será usado para acessar os valores da coluna.

property
IPropertyBase

A propriedade que está sendo lida se houver, nulo caso contrário.

readFunc
Object

Um System.Func{DbDataReader, Int32[], T} usado para obter o valor do campo para esta coluna.

Retornos

Uma instância de ReaderColumn<T>.

Aplica-se a