X Already contains a definition Y with EntityFramework? (simple database)

后端 未结 2 1048
礼貌的吻别
礼貌的吻别 2020-12-16 16:18

I have 3 tables in my MS SQL database and I have added a EntityFramework(latest) to my project where I have imported these 3 tables. The first problem was that no Entities w

2条回答
  •  清歌不尽
    2020-12-16 16:24

    1. Right Click the Entity model.
    2. Go to properties and remove the default name in the "Custom Tool".
    3. Assign the edmx in the model.tt and model.context
    4. Build and execute it you will be free from error.

提交回复
热议问题