共用方式為


ReaderColumn<T> 建構函式

定義

多載

ReaderColumn<T>(Boolean, String, Func<DbDataReader,Int32[],T>)
已淘汰.

建立 ReaderColumn<T> 類別的新執行個體。

ReaderColumn<T>(Boolean, String, IPropertyBase, Func<DbDataReader,Int32[],T>)

建立 ReaderColumn<T> 類別的新執行個體。

ReaderColumn<T>(Boolean, String, Func<DbDataReader,Int32[],T>)

警告

Use constructor which also takes IPropertyBase.

建立 ReaderColumn<T> 類別的新執行個體。

public ReaderColumn (bool nullable, string name, Func<System.Data.Common.DbDataReader,int[],T> getFieldValue);
[System.Obsolete("Use constructor which also takes IPropertyBase.")]
public ReaderColumn (bool nullable, string name, Func<System.Data.Common.DbDataReader,int[],T> getFieldValue);
[System.Obsolete("Use constructor which also takes IPropertyBase.")]
public ReaderColumn (bool nullable, string? name, Func<System.Data.Common.DbDataReader,int[],T> getFieldValue);
new Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T> : bool * string * Func<System.Data.Common.DbDataReader, int[], 'T> -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T>
[<System.Obsolete("Use constructor which also takes IPropertyBase.")>]
new Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T> : bool * string * Func<System.Data.Common.DbDataReader, int[], 'T> -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T>
Public Sub New (nullable As Boolean, name As String, getFieldValue As Func(Of DbDataReader, Integer(), T))

參數

nullable
Boolean

值,指出資料行是否可為 Null。

name
String

資料行名稱。

getFieldValue
Func<DbDataReader,Int32[],T>

從讀取器取得資料行域值的函式。

屬性

適用於

ReaderColumn<T>(Boolean, String, IPropertyBase, Func<DbDataReader,Int32[],T>)

建立 ReaderColumn<T> 類別的新執行個體。

public ReaderColumn (bool nullable, string name, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property, Func<System.Data.Common.DbDataReader,int[],T> getFieldValue);
public ReaderColumn (bool nullable, string? name, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase? property, Func<System.Data.Common.DbDataReader,int[],T> getFieldValue);
new Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T> : bool * string * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * Func<System.Data.Common.DbDataReader, int[], 'T> -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T>
Public Sub New (nullable As Boolean, name As String, property As IPropertyBase, getFieldValue As Func(Of DbDataReader, Integer(), T))

參數

nullable
Boolean

值,指出資料行是否可為 Null。

name
String

資料行名稱。

property
IPropertyBase

如果有任何,則會讀取屬性,否則為 null。

getFieldValue
Func<DbDataReader,Int32[],T>

從讀取器取得資料行域值的函式。

適用於