I have made a Entityframework model first to create tables to the database,
but then I found mistakes in my design, so I change the edmx model manually,
including changing the constraints between relationship as well as multiplicities.
So now, more error occur :
Error 3032: Problem in mapping fragments starting at lines ...,... are being mapped to the same rows in table Risk. Mapping conditions can be used to distinguish the rows that these types are mapped to.
Seems it's because the inconsistency between database and the model, there are lots of article discussing how to update the model from database, but not to update the database from the model. (Sorry if I missed a lot...)
To the person who's not familiar with T-SQL, the way convenient for me is just to update the model then expect the database will be updated consistently.
So please tell me is there any solution of this?