Sdílet prostřednictvím


EntityViewGenerationAttribute Třída

Definice

Upozornění

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.

Atribut označující sestavení, která obsahují vygenerovaný typ zobrazení.

[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
Dědičnost
EntityViewGenerationAttribute
Atributy

Konstruktory

EntityViewGenerationAttribute(Type)
Zastaralé.

Inicializuje novou instanci EntityViewGenerationAttribute třídy .

Vlastnosti

ViewGenerationType
Zastaralé.

Získá T:System.Type zobrazení.

Platí pro