DbMappingViewCacheTypeAttribute 类     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义一个自定义属性,该属性指定与上下文类型 (或) 子类 DbMappingViewCache 关联的) ) 的映射视图缓存类型 (子类 ObjectContextDbContext 。 缓存类型在运行时实例化,用于检索相应上下文中预生成的视图。
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments")]
public sealed class DbMappingViewCacheTypeAttribute : Attributetype DbMappingViewCacheTypeAttribute = class
    inherit AttributePublic NotInheritable Class DbMappingViewCacheTypeAttribute
Inherits Attribute- 继承
- 
				DbMappingViewCacheTypeAttribute
- 属性
构造函数
| DbMappingViewCacheTypeAttribute(Type, String) | 创建一个 DbMappingViewCacheTypeAttribute 实例,该实例将上下文类型与映射视图缓存类型相关联。 | 
| DbMappingViewCacheTypeAttribute(Type, Type) | 创建一个 DbMappingViewCacheTypeAttribute 实例,该实例将上下文类型与映射视图缓存类型相关联。 |