Freigeben über


ReaderColumn.Create Methode

Definition

Überlädt

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

Erstellt eine Instanz von ReaderColumn<T>.

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

Erstellt eine Instanz von ReaderColumn<T>.

Create(Type, Boolean, String, Object)

Achtung

Use method which also takes IPropertyBase.

Erstellt eine Instanz von 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

Parameter

type
Type

Der Typ der Spalte.

nullable
Boolean

Gibt an, ob die Spalte null-Werte enthalten kann.

columnName
String

Der Spaltenname, wenn er für den Zugriff auf die Spaltenwerte verwendet wird, andernfalls null .

readFunc
Object

Ein System.Func{DbDataReader, Int32[], T} , der zum Abrufen des Feldwerts für diese Spalte verwendet wird.

Gibt zurück

Eine Instanz von ReaderColumn<T>.

Attribute

Gilt für:

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

Erstellt eine Instanz von 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

Parameter

type
Type

Der Typ der Spalte.

nullable
Boolean

Gibt an, ob die Spalte null-Werte enthalten kann.

columnName
String

Der Spaltenname, wenn er für den Zugriff auf die Spaltenwerte verwendet wird, andernfalls null .

property
IPropertyBase

Die zu lesende Eigenschaft, falls vorhanden, andernfalls NULL.

readFunc
Object

Ein System.Func{DbDataReader, Int32[], T} , der zum Abrufen des Feldwerts für diese Spalte verwendet wird.

Gibt zurück

Eine Instanz von ReaderColumn<T>.

Gilt für: