Working with Ef Code First - how can i map an existing foreign key to a navigation property with code first


+1 vote
asked Feb 14, 2016 by anywhere (1,710 points)
But I want it to look like a scrollview with other images visible along the side. I'm using code first to create application of customer management.

3 Answers

0 votes
answered Apr 29, 2016 by exactly4059 (280 points)

We just created our first one to many relationship using EF Code First.
So let's modify our Project class to use this property vs. The first one was created because of our property Manager Id.
commented May 1, 2016 by emissionsGet (680 points)
I had this same problem and was having no luck with the suggested fixes
0 votes
answered Apr 29, 2016 by Ceb398 (260 points)
There are utilities that will do this for you
That post is available at Conventions for Code First - Entity Framework Design ...
commented Apr 30, 2016 by estell (120 points)
About the second one, it's a feature allowed by Code First
commented May 1, 2016 by today (110 points)
Could someone explain what this means. Just in case it could be helpful to anyone
0 votes
answered Apr 30, 2016 by Pna2381c (370 points)
In the file MyContext
commented May 1, 2016 by scriven (630 points)
Reviving this question because I find this to be a much better solution. This minimized a headache

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...