0

Using Visual studio 2013 we are using the edmx feature to build the model based on the database.

Unfortunately when we update the model from the database some of the fields seem to have the number 1 added to their name. For example the table in the database looks like this Database view

But the model in visual studio is being created like this

Model view

How can I stop it adding the number 1 after the field name? This is happening in more than one table too. I have tried regenerating the table on its own or the entire database and its not making any difference.

1 Answer 1

0

Ok so I think I have found out what the reason is. If any of the tables in my database have the same name as the field name is where this issue is happening.

If you change the field name in the database then it should be fine. e.g the the example above change the field name from ClientTitle to ClientTitleName.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.