cossy74
asked on
Entity Framework and Associations
Hi,
I have a table defined as below:
Table: ContactEvent
ID (PK)
ContactId
EventId
And i have a View
View: vContactInfo
ID(pk)
FirstName
LastName
And then i create a model which imports both of these items.
But it is here that i am stuck.
How do i create an association between the ContactId column in the ContactEvent table and the ID column in the vContactInfo view? BTW it should be a 1:1 relationship.
I have a table defined as below:
Table: ContactEvent
ID (PK)
ContactId
EventId
And i have a View
View: vContactInfo
ID(pk)
FirstName
LastName
And then i create a model which imports both of these items.
But it is here that i am stuck.
How do i create an association between the ContactId column in the ContactEvent table and the ID column in the vContactInfo view? BTW it should be a 1:1 relationship.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.