When trying to add a view to the edmx file, nothing happens.
I opened the edmx file using wxl editor and I noticed the following error:
warning 6013: The table/view
'CellularOrders.dbo.V_LINK' does not
have a primary key defined and no
valid primary key could be inferred.
This table/view has been excluded. To
use the entity, you will need to
review your schema, add the correct
keys, and uncomment it.
(importent thing - I didn't and don't need to add the table which the view based on to the edmx. Moreover, the view is only for doing select statements on the data)
So in the db, I updated the T_LINK table and made one of the fields that reflects on the view as primary key. And then, when I tryed again to add the view to the edmx nothing happens again.
How can I solve this??
Is there an option to fix this without doing anything to the table?
Can I add another view that will somehow wrap the old view but with fixed properties?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…