IncludeMetadataConvention Class
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.
Assembly: EntityFramework (in EntityFramework.dll)
System.Data.Entity.ModelConfiguration.Conventions.Convention
System.Data.Entity.Infrastructure.IncludeMetadataConvention
Name | Description | |
---|---|---|
![]() | IncludeMetadataConvention() | Initializes a new instance of the IncludeMetadataConvention class. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Properties() | Begins configuration of a lightweight convention that applies to all properties in the model.(Inherited from Convention.) |
![]() | ToString() | (Inherited from Object.) |
![]() | Types() | 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.