One To Many,Many To Many In Entity Framework Practical Approach

. Sunday, December 23, 2012
0 comments

Hi Guys,
I wondered through lots of places to find solution of my problem that How to establish One To Many,Many To Many Relationships in Entity Framework,but I didn't find any good solution so finally decided to create my own practical solution for this.

In my solution I'm providing following things :-
a)Created the corresponding database for relationships like One To One,Many To One (vice-versa),Many To Many etc.
b) Established Entity-Framework Model from Database i.e. Database First Technique.
c) Performed Add in Many To One & Many To Many Relationships.
d) Performed Cascade Delete in relationships
e)Give me one commitment to Perform Cascade update after finding the complete solution so that my this post will get succeed.

You should follow the exact approach which I shown in the example given for saving of many to many deleting etc, such techniques are built-in features of Entity-Framework Relationship Model we should use them.

Please find the complete code from my GitHub repository Here.

Hope you'll enjoy my this article Please feel free to comment.
Thanks Happy Coding.