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 then result in model metadata being written to the database if the DbContext is used to create the database. This can then be used as a quick check to see if the model has changed since the last time it was used against the database. This convention can be removed from the DbModelBuilder conventions by overriding the OnModelCreating method on a derived DbContext class.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.ModelConfiguration.Conventions.Convention
    System.Data.Entity.Infrastructure.IncludeMetadataConvention

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

NameDescription
System_CAPS_pubmethodIncludeMetadataConvention()

Initializes a new instance of the IncludeMetadataConvention class.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodProperties()

Begins configuration of a lightweight convention that applies to all properties in the model.(Inherited from Convention.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTypes()

Begins configuration of a lightweight convention that applies to all mapped types in the model.(Inherited from Convention.)

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