Share via


EdmMetadata.TryGetModelHash(DbContext) Method

Definition

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.

public static string TryGetModelHash (System.Data.Entity.DbContext context);
static member TryGetModelHash : System.Data.Entity.DbContext -> string
Public Shared Function TryGetModelHash (context As DbContext) As String

Parameters

context
DbContext

The context.

Returns

The hash string.

Applies to