Compartilhar via


EntityViewGenerationAttribute Classe

Definição

Cuidado

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.

Atributo para marcar os assemblies que contêm o tipo de exibição gerado.

[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
Herança
EntityViewGenerationAttribute
Atributos

Construtores

EntityViewGenerationAttribute(Type)
Obsoleto.

Inicializa uma nova instância da classe EntityViewGenerationAttribute.

Propriedades

ViewGenerationType
Obsoleto.

Obtém o T:System.Type da exibição.

Aplica-se a