views:

103

answers:

0

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 model:

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