ReaderColumn<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>
用于从读取器获取列的字段值的函数。