Link to home
Start Free TrialLog in
Avatar of cossy74
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.
ASKER CERTIFIED SOLUTION
Avatar of Asim Nazir
Asim Nazir
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial