EntityViewGenerationAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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。 |