We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Entity Framework and Associations

cossy74
cossy74 asked
on
Medium Priority
232 Views
Last Modified: 2012-05-11
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.
Comment
Watch Question

Project Manager
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.