IncludeMetadataConvention Class

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)

[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 : IConvention

The IncludeMetadataConvention type exposes the following members.

Public methodIncludeMetadataConventionInitializes a new instance of the IncludeMetadataConvention class.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.