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。 |