语言

ReaderColumn.Create 方法

定义

重载

Create(Type, Boolean, String, Object)

Source:
ReaderColumn.cs
Source:
ReaderColumn.cs
Source:
ReaderColumn.cs

注意

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, LambdaExpression)

Source:
ReaderColumn.cs
Source:
ReaderColumn.cs
Source:
ReaderColumn.cs

创建 ReaderColumn<T> 的实例。

[System.Diagnostics.CodeAnalysis.Experimental("EF9100")]
public static Microsoft.EntityFrameworkCore.Storage.ReaderColumn Create(Type type, bool nullable, string? columnName, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase? property, System.Linq.Expressions.LambdaExpression readFunc);
[<System.Diagnostics.CodeAnalysis.Experimental("EF9100")>]
static member Create : Type * bool * string * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn
Public Shared Function Create (type As Type, nullable As Boolean, columnName As String, property As IPropertyBase, readFunc As LambdaExpression) As ReaderColumn

参数

type
Type

列的类型。

nullable
Boolean

列是否可以包含 null 值。

columnName
String

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

property
IPropertyBase

要读取的属性(如果有)否则为 null。

readFunc
LambdaExpression

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

返回

ReaderColumn<T>的实例。

特性

适用于

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

Source:
ReaderColumn.cs
Source:
ReaderColumn.cs
Source:
ReaderColumn.cs
Source:
ReaderColumn.cs

创建 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>的实例。

适用于