語言

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
屬性

建構函式

名稱 Description
EntityViewGenerationAttribute(Type)
已淘汰.

初始化 EntityViewGenerationAttribute 類別的新執行個體。

屬性

名稱 Description
ViewGenerationType
已淘汰.

取得 T:System。視圖類型。

適用於