EntityViewGenerationAttribute 类

定义

注意

The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute.

用于标记包含生成的视图类型的程序集的属性。

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Obsolete("The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute.", true)]
public sealed class EntityViewGenerationAttribute : Attribute
type EntityViewGenerationAttribute = class
    inherit Attribute
Public NotInheritable Class EntityViewGenerationAttribute
Inherits Attribute
继承
EntityViewGenerationAttribute
属性

构造函数

EntityViewGenerationAttribute(Type)
已过时.

初始化 EntityViewGenerationAttribute 类的新实例。

属性

ViewGenerationType
已过时.

获取视图的 T:System.Type。

适用于