EdmMetadata.TryGetModelHash(DbContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework