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 8932949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:25:17+00:00 2026-06-15T09:25:17+00:00

I have 3 tables: table1 with columns(ProductId, name, etc), table2 (DocumentId, name, etc), table3

  • 0

I have 3 tables: table1 with columns(ProductId, name, etc), table2 (DocumentId, name, etc), table3 (ProductId, documentId). When I create a .edmx model I have only table1 and table2 in my model, I can’t see table3. How can I get the Documents for Products if the table3 is missing?

  • 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-06-15T09:25:18+00:00Added an answer on June 15, 2026 at 9:25 am

    See that when you create the model, you have both in Products, a property called Documents, and in Documents, a property called Products.

    To see Documents in a Product, then call:

    var documents = DbContext.Documents.Include("Products").ToList();
    

    and the same for products

    var products = DbContext.Products.Include("Documents").ToList();
    

    and then you will have Products as a collection for each Document and Documents as a collection for each Product

    This happends to every Many to Many table in EF.

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

Sidebar

Related Questions

I have two tables that contain completely separate information: table: tires columns: Tire_id name
i have two tables Table1 : Categories , Columns : id , parent_id ,
I have a table ProductNumberDuplicates_backups, which has two columns named ProductID and ProductNumber. There
I have a table of product information with many bit columns. This table can
I have one table: dbo.Product Two columns: SKU Name --- ---- 100A-B (F102397) 1
I have two tables: **Product** ID Name SKU **Brand** ID Name Product table has
I have 3 tables which is subcategory, product, and prod_category. When I create my
I want to have a general product model that has basic info like name,
I have a table like this: Table name: PRODUCT ID PRODUCTID PRODUCTNAME 1 D100
I have 14 tables (one for every year) with product code, firm name and

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.