IncludeMetadataConvention Class
Entity Framework 5.0
Note: This API is now obsolete.
This DbModelBuilder convention causes DbModelBuilder to include metadata about the model when it builds the model. When DbContext creates a model by convention it will add this convention to the list of those used by the DbModelBuilder. This will result in model metadata being written to the database if the DbContext is used to create the database. This can then be used to verify whether the model has changed since the last time it was used against the database. This convention can be removed from the list of DbModelBuilder conventions by overriding the OnModelCreating(DbModelBuilder) method.
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration <ObsoleteAttribute("The IncludeMetadataConvention is no longer used. EdmMetadata is not included in the model. <see cref="EdmModelDiffer" /> is now used to detect changes in the model.")> _ Public Class IncludeMetadataConvention _ Implements IConvention 'Usage Dim instance As IncludeMetadataConvention
The IncludeMetadataConvention type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IncludeMetadataConvention | Initializes a new instance of the IncludeMetadataConvention class. |
Show:
