EdmMetadata.TryGetModelHash Method (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.

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

public static string TryGetModelHash(
	DbContext context
)

Parameters

context
Type: System.Data.Entity.DbContext

The context.

Return Value

Type: System.String

The hash string.