Compartir a través de


EntityViewGenerationAttribute Clase

Definición

Precaució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.

Atributo para marcar los ensamblados que contienen el tipo de vistas generadas.

[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
Herencia
EntityViewGenerationAttribute
Atributos

Constructores

EntityViewGenerationAttribute(Type)
Obsoletos.

Inicializa una nueva instancia de la clase EntityViewGenerationAttribute.

Propiedades

ViewGenerationType
Obsoletos.

Obtiene el T:System.Type de la vista.

Se aplica a