I'm working with Code First Migrations (Entity Framework 4.3) and I'd like to get a compressed binary version of the current model, so that I can manually compare it to the latest model stored in the __MigrationHistory
table (or to one I have stored in a text file).
There is the EdmMetadata.TryGetModelHash()
method, but that's marked as deprecated and I want to avoid it if possible (for future-proofing reasons).
How would I do this under EF 4.3?
Edit: From a bit more investigation and the info in Pawel's answer I've figured out that this field no longer stores a hash but a compressed binary representation of the model. It's this I'm trying to create.