Warnings in edmx file when upgrading from 3.5 to 4

I upgraded my solution from .NET 3.5 to 4.0, and, thank God, I just had to fix minor things. But I do not understand that a lot of warnings appeared in the edmx file:

Error 2005: Mapping Association 'FK_CP_C' is redundant: Its referential integrity constraint provides sufficient information. You can safely delete the mapping information for this association. 

Have you ever come across this? Should I take the risk and remove associations?
I tried to do this, but could not find anything.

thanks

+4
source share
1 answer

Well FYI I made a backup of the project earlier, deleted those thoat associations that reported an error, updated the model and the warnings disappeared.

I skipped to notice which associations caused the warnings.

Hope this can help someone in the future.

+4
source

Source: https://habr.com/ru/post/1314843/


All Articles