Share via


EdmMetadata Class

Definition

Caution

EdmMetadata is no longer used. The Code First Migrations <see cref="EdmModelDiffer" /> is used instead.

Represents an entity used to store metadata about an EDM in the database.

[System.Obsolete("EdmMetadata is no longer used. The Code First Migrations <see cref="EdmModelDiffer" /> is used instead.")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Edm")]
public class EdmMetadata
[System.Obsolete("EdmMetadata is no longer used. The Code First Migrations <see cref="EdmModelDiffer" /> is used instead.")]
public class EdmMetadata
type EdmMetadata = class
Public Class EdmMetadata
Inheritance
EdmMetadata
Attributes

Constructors

EdmMetadata()

Properties

Id

Gets or sets the ID of the metadata entity, which is currently always 1.

ModelHash

Gets or sets the model hash which is used to check whether the model has changed since the database was created from it.

Methods

TryGetModelHash(DbContext)

Attempts to get the model hash calculated by Code First for the given context. This method will return null if the context is not being used in Code First mode.

Applies to