I am using Oracle as the DB, VS2012, and EF 5.0.
I know the table has a PK (Composite Key) and I create a view with
create view v_table_name as select * from table_name
When I try to add the view to EF, it says there is not PK and makes the object read only. I have tried to add a PK to the view but it tells me that the table can have only on primary key
.
I used the following
ALTER VIEW V_TABLE_NAME
ADD CONSTRAINT V_V_TABLE_NAME_PK PRIMARY KEY (DRSY, DRRT, DRKY) DISABLE NOVALIDATE;
Any idea why EF is not recognizing the PK?