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.
cossy74Asked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.