语言

EntityMaterializerSource 类

定义

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

public class EntityMaterializerSource : Microsoft.EntityFrameworkCore.Query.IEntityMaterializerSource
type EntityMaterializerSource = class
    interface IEntityMaterializerSource
Public Class EntityMaterializerSource
Implements IEntityMaterializerSource
继承
EntityMaterializerSource
实现

构造函数

名称 说明
EntityMaterializerSource(EntityMaterializerSourceDependencies)

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

字段

名称 说明
TryReadValueMethod

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

方法

名称 说明
CreateMaterializeExpression(IEntityType, String, Expression)

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

CreateReadValueExpression(Expression, Type, Int32, IPropertyBase)

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

GetMaterializer(IEntityType)

服务生存期为 Singleton。 这意味着多个实例使用 DbContext 单个实例。 实现必须是线程安全的。 此服务不能依赖于注册为 Scoped..

适用于