I need to use tables from a database that I cannot modify (using a linked server). So part of my schema is the view on this table, and I cannot create an FK in my database.
When I come to the creation of an association in the Entity Framework ADO.NET, I have problems because the second column of the table from the external database has an index on it, and EF creates an Entity key for it (this is the name descr of the record - I think they just wanted to speed things up on it).
When I get the Entity Key from this column in the EF element, it complains that I need it because there is a key in the base table. If I leave it, I cannot match it with anything in the EF mapping table.
Does anyone know what I should do, please?
source
share