Freigeben über


EntityViewGenerationAttribute Klasse

Definition

Achtung

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, um die Assemblys zu markieren, die den generierten Ansichtentyp enthalten.

[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
Vererbung
EntityViewGenerationAttribute
Attribute

Konstruktoren

EntityViewGenerationAttribute(Type)
Veraltet.

Initialisiert eine neue Instanz der EntityViewGenerationAttribute-Klasse.

Eigenschaften

ViewGenerationType
Veraltet.

Ruft T:System.Type der Sicht ab.

Gilt für: