0

I have 3 tables in my database like this:

enter image description here

In my ASP.NET Mvc app. I use entity data model. When I convert database to entity data model TBL_VOTES_ARTICLE table is not converted. Others are converted.

Why this is happening?

Thanks.

AliRıza Adıyahşi
  • 15,658
  • 24
  • 115
  • 197
  • it has to do with a table structure not sure if it would cause a problem but might be join primary key – COLD TOLD Apr 22 '12 at 17:47
  • How can I change database desing? or Is it necessary? – AliRıza Adıyahşi Apr 22 '12 at 17:49
  • what kind of Visual studio are you using?? I would try to rename the table TBL_VOTES_ARTICLE to TBL_VOTES_ARTICLE1 some time it helps if not you have to go to sql server manager I would try to add a new primary key TBL_VOTES_ARTICLEID make it identity and remove primary key from two other fields – COLD TOLD Apr 22 '12 at 17:52
  • Yes. It works. You should write the last comment as answers. Thanks a lot. – AliRıza Adıyahşi Apr 22 '12 at 18:01

1 Answers1

1

what kind of Visual studio are you using??

I would try to rename the table TBL_VOTES_ARTICLE to TBL_VOTES_ARTICLE1 some time it helps if not you have to go to sql server manager I would try to add a new primary key TBL_VOTES_ARTICLEID make it identity and remove primary key from two other fields

COLD TOLD
  • 13,513
  • 3
  • 35
  • 52