Scenario: Important meeting! Too much coffee! Bad lighting! In walks the killer! Wait…
No, that’s wrong. In walks Visual Studio 2010 Beta 2 with an inability to open an EDMX created with Visual Studio 2010 Beta 1, asking if I’d like to open the file in an XML editor. Ack! A previously printed paper diagram (for the meeting) and a bit of time later I resolved the differences between my EDMX and a test EDMX created with Beta 2.
- The Schema tag,next item after <edmx:StorageModels>, had the correct xmlns property but was missing entirely the xmlns:store property. Adding xmlns:store=”http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator” was required.
- The Schema tag,next item after <edmx:ConceptualModels>, had the correct xmlns property but was missing entirely the xmlns:annotation property. Adding xmlns:annotation=”http://schemas.microsoft.com/ado/2009/02/edm/annotation” was required.
- Changing all “store:” prefixed properties of elements within ConceptualModels to be “annotation:” prefixed.
- Swore at Microsoft a little for giving me the “prividledge” of hand-editing a 2400 line xml file.
A save and compile later I could open my diagram and proceed. Hope that helps!