views:

194

answers:

1

I'm trying to generate entity model from my Postgresql database. Under .net 3.5 and vs2008 it worked fine. Unfortunately under vs10 it doesn't. I get an error:

"The file references an XML namespace that is inconsistend with the target framework of the project."

I assume it's because EF4 is using EDMX v2 not v1, but I cannot change it using RetrofitModel parameter of EdmGen2 (there is similar parameter in available under ModelGen but not RetrofitModel). I've tried to change the version and references manually in xml and was able to display edmx file in designer - it was empty though.

Question

How to generate EF4 design files for VS10 from Postgresql database?

A: 

http://twitter.com/richard_lima/status/13155689779

Richard
I saw this blog post. It's good but it's about a version of edmgen2 that was incompatible with EF4. The new version works (you can choose the version of the edmx file you want to generate) despite RetrofitModel that for some reaston uses still the old version 1.
kyrisu