IEntityMaterializerSource.CreateReadValueExpression 方法

定义

创建一个 Expression 树,表示从 中读取值 ValueBuffer

此方法通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。

public System.Linq.Expressions.Expression CreateReadValueExpression (System.Linq.Expressions.Expression valueBuffer, Type type, int index, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
abstract member CreateReadValueExpression : System.Linq.Expressions.Expression * Type * int * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> System.Linq.Expressions.Expression
Public Function CreateReadValueExpression (valueBuffer As Expression, type As Type, index As Integer, property As IPropertyBase) As Expression

参数

valueBuffer
Expression

公开 的 ValueBuffer表达式。

type
Type

要读取的类型。

index
Int32

要从中读取的缓冲区中的索引。

property
IPropertyBase

正在读取的 IPropertyBase(如果有)。

返回

用于读取值的表达式。

适用于