Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

System.Object
  System.Data.Entity.Infrastructure.IncludeMetadataConvention

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.

  NameDescription
Public methodIncludeMetadataConventionInitializes a new instance of the IncludeMetadataConvention class.
Top
  NameDescription
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.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.