How to solve ProviderManifestToken="8.3.7" and Npgsql ProviderManifestToken="8.1.3" conflict?
I'm trying to connect to my PostgreSQL database using Entity Framework. Unfortunately after generating a model using EdmGen (or EdmGen2) in my SSDL file ProviderManifestToken is set to 8.3.7 when in the current version of Npgsql (2.0.9) it is set to 8.1.3. This gives me fallowing exception when trying to use my entity m开发者_Python百科odel:
System.Data.MetadataException: Schema specified is not valid. Errors: Npgsql.NpgsqlSchema.ssdl(2,52) : error 0169: All SSDL artifacts must target the same provider. The ProviderManifestToken '8.1.3' is different from '8.3.7' that was encountered earlier.
Any ideas how to fix it or generate a model with ProviderManifestToken eq 8.1.3?
Please don't suggest commercial database connectors my budget won't allow it :P
- Open your edmx file in a text editor.
- Look for the ProviderManifestToken attribute of the Edmx/Runtime/StorageModels/Schema element.
- If it is set to 8.1.3, change it to 8.3.7 and then recompile everything.
精彩评论