Riz
Riz

Reputation: 6982

Primary Key setting for Views

I have a database that has few tables and views. Views are combination of 2 to 3 tables. I have created entity model from that db, and all worked well. The only problem I am facing is that entity model is making all the fields in view as primary key.

Is there a way to tell entity model which field to use as primary key? or I should simply ignore it?

Upvotes: 1

Views: 117

Answers (1)

BennyM
BennyM

Reputation: 2856

In the designer you can set the properties that need to be used as 'entity key' property. Key meaning the primary key.

enter image description here

Upvotes: 2

Related Questions