ReaderColumn<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ReaderColumn<T>(Boolean, String, Func<DbDataReader,Int32[],T>)
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
注意
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>)
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
创建类的新实例 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>
一个函数,用于从读取器中获取列的字段值。
适用于
ReaderColumn<T>(Boolean, String, IPropertyBase, Expression<Func<DbDataReader,Int32[],T>>)
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
- Source:
- ReaderColumn`.cs
创建类的新实例 ReaderColumn<T> 。
[System.Diagnostics.CodeAnalysis.Experimental("EF9100")]
public ReaderColumn(bool nullable, string? name, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase? property, System.Linq.Expressions.Expression<Func<System.Data.Common.DbDataReader,int[],T>> getFieldValueExpression);
[<System.Diagnostics.CodeAnalysis.Experimental("EF9100")>]
new Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T> : bool * string * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * System.Linq.Expressions.Expression<Func<System.Data.Common.DbDataReader, int[], 'T>> -> Microsoft.EntityFrameworkCore.Storage.ReaderColumn<'T>
Public Sub New (nullable As Boolean, name As String, property As IPropertyBase, getFieldValueExpression As Expression(Of Func(Of DbDataReader, Integer(), T)))
参数
- nullable
- Boolean
一个值,该值指示列是否可为 null。
- name
- String
列的名称。
- property
- IPropertyBase
要读取的属性(如果有)否则为 null。
- getFieldValueExpression
- Expression<Func<DbDataReader,Int32[],T>>
一个 lambda 表达式,用于从读取器中获取列的字段值。
- 特性