Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

EDM Mapping for the 'real' logical and SQL types
GodofThunder
#1 Posted : Friday, August 10, 2018 4:05:09 PM(UTC)


I've downloaded the latest version and installed...

I now get the following errors:

Severity Code Description Project File Line Suppression State
Error Error 2019: Member Mapping specified is not valid. The type 'Edm.Double[Nullable=True,DefaultValue=]' of member 'Y' in type 'MyProject5Model.SfDgDiagramPoint' is not compatible with 'SqlServer.real[Nullable=True,DefaultValue=]' of member 'Y' in type 'MyProject5Model.Store.SfDgDiagramPoint'. MyProject5.Services.Entities c:\repos\MyProject5\MyProject5\MyProject5.Services.Entities\Entities\EntityModel.edmx 6041
Error Error 2019: Member Mapping specified is not valid. The type 'Edm.Double[Nullable=True,DefaultValue=]' of member 'X' in type 'MyProject5Model.SfDgDiagramPoint' is not compatible with 'SqlServer.real[Nullable=True,DefaultValue=]' of member 'X' in type 'MyProject5Model.Store.SfDgDiagramPoint'. MyProject5.Services.Entities c:\repos\MyProject5\MyProject5\MyProject5.Services.Entities\Entities\EntityModel.edmx 6040
Error Error 2019: Member Mapping specified is not valid. The type 'Edm.Double[Nullable=True,DefaultValue=]' of member 'X' in type 'MyProject5Model.SfDgDiagramPoint' is not compatible with 'SqlServer.real[Nullable=True,DefaultValue=]' of member 'X' in type 'MyProject5Model.Store.SfDgDiagramPoint'. MyProject5.Services.Entities c:\repos\MyProject5\MyProject5\MyProject5.Services.Entities\Entities\EntityModel.edmx 6040
Error Error 2019: Member Mapping specified is not valid. The type 'Edm.Double[Nullable=True,DefaultValue=]' of member 'Y' in type 'MyProject5Model.SfDgDiagramPoint' is not compatible with 'SqlServer.real[Nullable=True,DefaultValue=]' of member 'Y' in type 'MyProject5Model.Store.SfDgDiagramPoint'. MyProject5.Services.Entities c:\repos\MyProject5\MyProject5\MyProject5.Services.Entities\Entities\EntityModel.edmx 6041


Could you please advise?

Thanks,

GoT
xomega
#2 Posted : Saturday, August 11, 2018 4:24:23 AM(UTC)
xomega



Thanks for reporting your new issue. Could you please try the following steps, and let us know if that resolved the error.

  1. Open your .xom file with the definition of the SfDgDiagramPoint object, and make sure that fields X and Y have a logical type "real".
  2. Right-click on the logical type "real" on any of those fields, and select Go To Definition.
  3. Expand the definition of type "real", and add <edm:type Type="Single"/> under its config section.
  4. Right-click on the Entity Data Model generator under the Data Layer folder, and select Generate.
  5. Build your solution, and make sure the error is no longer generated.

We will update the default configuration of the "real" type in the next release as well.

Please let us know if you run into any other issues.
xomega
#3 Posted : Thursday, September 13, 2018 5:16:23 AM(UTC)
xomega



FYI - the proper EDM mapping for the logical type "real" and other types has been added to the project template in our latest Xomega release 7.7.5 for VS2017 (or 6.7.5 for VS2015).

Please download and install the new version, and let us know if it works for you now.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.