Following from my old question in which I used SQL
server and Entity framework. As in initial stage I set address id
as not null in database and similarly I also created a parameter user id
in address field which is also not nullable. Now I am stuck as one of these needs to created first. So I set userid
field as allow null in db and tried updating model from database but it throws error
Severity Code Description Project File Line Suppression State Error Running transformation: Multiplicity is not valid in Role 'User' in relationship 'FK_Addresses_Areas1'. Because all the properties in the Dependent Role are nullable, multiplicity of the Principal Role must be '0..1'. Lightmap C:\Users\Rohit\Documents\Visual Studio 2015\Projects\Lightmap\Lightmap\Models\Lightmap.edmx 467
Now I can't resolve this. Can anybody help?