I have 2 tables, Table1 has a primary key \'CustomizationId\', and Table2 has a FK Customizationid which matches this. Table2 has no primary key.
I am trying to add
As far as the EF is concerned the table without a PK is a View.
This means you have two options:
Generally modification functions are stored procedures, but you can actually add T-SQL directly to the SSDL if you don't have access to the database...
I.e. something like this in the
element of the EDMX for each action (insert, update and delete):
INSERT dbo.TCode(ID, Name) VALUES (@ID, @Name)
Once you have the modification functions in your SSDL you need to map them so that the EF uses them as required.
In your situation I recommend (1).
Hope this helps.
Cheers Alex