after added association got No mapping specified for the following AssociationSet

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
urbanr
Posts: 8
Joined: Tue 23 Apr 2019 11:52

after added association got No mapping specified for the following AssociationSet

Post by urbanr » Tue 27 Aug 2019 01:12

Hi,
I added association between 2 tables (no foreign keys) and getting this error about no mapping.
Added association on diagram looks fine (1 to *) but when I open edml file in notepad there is no mapping indeed.
Why new association was not added/saved?
thanks

Shalex
Site Admin
Posts: 8979
Joined: Thu 14 Aug 2008 12:44

Re: after added association got No mapping specified for the following AssociationSet

Post by Shalex » Tue 27 Aug 2019 19:06

Right-click on your association in Model Explorer > Create Storage and Mapping. Does this help?

With Model-First approach, be aware of the following option which allows applying default mapping in SSDL automatically: Model Settings > Synchronization > Mapping > "Enable automatic synchronization of storage part and mapping of the model with its conceptual part".

urbanr
Posts: 8
Joined: Tue 23 Apr 2019 11:52

Re: after added association got No mapping specified for the following AssociationSet

Post by urbanr » Tue 27 Aug 2019 20:31

oh, that was so simple :) thanks that did help.
BTW it was db first approach.

Post Reply