ReaderColumn.Create 方法

定义

重载

Create(Type, Boolean, String, Object)
已过时.

创建 ReaderColumn<T> 的实例。

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

创建 ReaderColumn<T> 的实例。

Create(Type, Boolean, String, Object)

注意

Use method which also takes IPropertyBase.

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

参数

type
Type

列的类型。

nullable
Boolean

列是否可以包含 null 值。

columnName
String

如果用于访问列值,则为列名称, null 否则为 。

readFunc
Object

用于 System.Func{DbDataReader, Int32[], T} 获取此列的字段值的 。

返回

ReaderColumn<T> 的一个实例。

属性

适用于

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

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

参数

type
Type

列的类型。

nullable
Boolean

列是否可以包含 null 值。

columnName
String

如果用于访问列值,则为列名称, null 否则为 。

property
IPropertyBase

正在读取的属性(如果有),否则为 null。

readFunc
Object

用于 System.Func{DbDataReader, Int32[], T} 获取此列的字段值的 。

返回

ReaderColumn<T> 的一个实例。

适用于