Partager via


EntityViewGenerationAttribute Classe

Définition

Attention

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.

Attribut pour marquer les assemblys qui contiennent le type de vues générées.

[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
Héritage
EntityViewGenerationAttribute
Attributs

Constructeurs

EntityViewGenerationAttribute(Type)
Obsolète.

Initialise une nouvelle instance de la classe EntityViewGenerationAttribute.

Propriétés

ViewGenerationType
Obsolète.

Obtient la valeur T:System.Type de la vue.

S’applique à