DbMappingViewCacheTypeAttribute 类

定义

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

[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 实例,该实例将上下文类型与映射视图缓存类型相关联。

适用于