devoured elysium
devoured elysium

Reputation: 105217

Entity Framework error when using Model First to generate code

As can be seen in the above image, I've defined an Entity Customer with a primary key Id, a FirstName and a LastName. I saved the model file and tried to build the solution. I got the following build errors:

enter image description here

Im using Entity Framework 5 on Visual Studio 2012. My purpose is to design the model and then have the database code generated. Any idea what might be wrong?

Here is some more info:

enter image description here

EDIT. Even more info:

enter image description here

Upvotes: 0

Views: 422

Answers (1)

Oliver
Oliver

Reputation: 696

Go to your Model Browser and delete the duplicate properties there.

Upvotes: 1

Related Questions