[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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.
0
cossy74
Asked:
cossy74
1 Solution

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now