语言

DbMappingViewCacheTypeAttribute 类

定义

定义一个自定义属性,该特性指定与上下文类型(或子类)DbContext关联的映射视图缓存类型(子类)。DbMappingViewCacheObjectContext 缓存类型在运行时实例化,用于在相应的上下文中检索预生成的视图。

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments")]
public sealed class DbMappingViewCacheTypeAttribute : Attribute
type DbMappingViewCacheTypeAttribute = class
    inherit Attribute
Public NotInheritable Class DbMappingViewCacheTypeAttribute
Inherits Attribute
继承
DbMappingViewCacheTypeAttribute
特性

构造函数

名称 说明
DbMappingViewCacheTypeAttribute(Type, String)

创建一个 DbMappingViewCacheTypeAttribute 实例,该实例将上下文类型与映射视图缓存类型相关联。

DbMappingViewCacheTypeAttribute(Type, Type)

创建一个 DbMappingViewCacheTypeAttribute 实例,该实例将上下文类型与映射视图缓存类型相关联。

适用于