EntityViewGenerationAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
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.
Attribute to mark the assemblies that contain the generated views type.
[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
- Inheritance
-
EntityViewGenerationAttribute
- Attributes
Constructors
EntityViewGenerationAttribute(Type) |
Initializes a new instance of the EntityViewGenerationAttribute class. |
Properties
ViewGenerationType |
Gets the T:System.Type of the view. |
Applies to
Entity Framework