Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 775181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:14:58+00:00 2026-05-14T19:14:58+00:00

In Entity Framework (VS2010) how do I create an association to/from the same table?

  • 0

In Entity Framework (VS2010) how do I create an association to/from the same table? (a many-to-many is what I want)

Background – I was expecting under the bonnet a NODE and RELATIONSHIP table, where the latter has a parent_node_id and a child_node_id (i.e. pointing back to the NODE id column). I can’t seem to get the designer to add it…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:14:59+00:00Added an answer on May 14, 2026 at 7:14 pm

    Model first: create entity, right click: add association, select same Entity, mark it Many to many on both ends.

    Database first: create two tables: Node and Edge, Edge contains two Node references. (Using appropriate PK, FK’s).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have vs2010, installed Entity framework 4.3.1 from nuget, installed the EF 4.x DbContext
How do I upgrade an existing VS2010 ASP.Net 3.5 project from Entity Framework 3.5
I'm using database first approach to create a model with entity framework. In VS2010
We are developing a web application with Entity Framework, MVC2, VS2010. VS2010 generates one
I´m trying out entity framework included in VS2010 but ´ve hit a problem with
I have created a very simple Entity Framework 4.0 model using VS2010 Professional. Ignore
Using VS 2010 beta 2, ASP.NET MVC. I tried to create an Entity framework
I'm trying out the Model First approach introduced in Entity Framework with VS2010/.Net 4.0,
I'm trying to return new data to jTable from my entity framework db context.
I'm trying to get to grips with MSTest. I'm using VS2010 with entity framework

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.