When upgrading CSDL 2.0 to CSDL 3.0 with the designer the UseStrongSpatialTypes annotation (set to false) is not added to the schema. This may result in a message/exception saying: "Currently, spatial types are only supported when used in CSDL files that have the UseStrongSpatialTypes annotation with a false value on their root Schema element". Note that the error will be shown only after adding a spatial property to the model - if there are no spatial properties the annotation is not needed.
Repro steps:
1. Create an app with 2.0 model (i.e. In VS2012 create an app, target .NET Framework 4.0 and a model)
2. Re-target the app to target .NET Framework 4.5 (this should upgrade artifacts to version 3.0)
3. With the designer add a spatial property to an entity
Expected behavior:
The model is valid
Actual behavior:
An error reading: "Currently, spatial types are only supported when used in CSDL files that have the UseStrongSpatialTypes annotation with a false value on their root Schema element"
Repro steps:
1. Create an app with 2.0 model (i.e. In VS2012 create an app, target .NET Framework 4.0 and a model)
2. Re-target the app to target .NET Framework 4.5 (this should upgrade artifacts to version 3.0)
3. With the designer add a spatial property to an entity
Expected behavior:
The model is valid
Actual behavior:
An error reading: "Currently, spatial types are only supported when used in CSDL files that have the UseStrongSpatialTypes annotation with a false value on their root Schema element"