There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?

3

Closed

The Ssdl we save in __MigrationHistory table is invalid

description

The Ssdl we save in the __MigrationHistory table is invalid. For some reason the error is not reported on the .NET Framework 4 when reading StoreItemCollection (either a weird xsd bug or we setup something incorrectly since the error is reported when opening
the ssdl (as xml) in VS). However on Mono Key element is marked as invalid. This results in an assert following by NRE on Mono. The bug is that we write IsSystem attribute on the Key element (<Key p5:IsSystem=""true"">)
while according to the schema the Key element cannot have any attributes - even in a non-empty, non-EF namespace.

I'm seeing the same problem. In fact, I'm stuck... I cannot migrate my model any longer.
I'm now on "6.0.0-beta1-20517" and using SqlCe. I hope you can fix this soon... Please...
Here is a dump from the package manager console:

This would be in the System.Data.Resources.SSDLSchema_3.xsd. Relaxing this however would mean that a v3 SSDL that can be parsed with EF6 will fail on EF5. I don't know how important it is since we have never heard anyone complaining that custom attributes
are not allowed on entity key elements. Also, note that in EF6 beta1 we no longer create the invalid SSDL