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

  • Home
  • SEARCH
  • 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 8788651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:11:36+00:00 2026-06-13T22:11:36+00:00

I have in my DB 2 tables: Documents (Document_Id ,document_Name) Person_Documents (person_ID ,Documet_Id document_Done)

  • 0

I have in my DB 2 tables:

  1. Documents (Document_Id ,document_Name)

  2. Person_Documents (person_ID ,Documet_Id document_Done)

I use entity framework and ,and I want to fill DataGrid with the data document_Name and document_Done,

I have tried the following with no results:

      vagEntities projectE = new vagEntities();
      var doc = from c in projectE.Person_Documents                   
          join cw in projectE.Documents on c.Document_Id equals cw.Document_Id
          where c.Person_Id == 150
          select c;

      DocGrid.ItemsSource = doc;

Please, where am I wrong?
un the xaml i write this

                <DataGridTextColumn Binding="{Binding Path=Document_Name}" MinWidth="100"   Header="document"  />

            <DataGridCheckBoxColumn  Binding="{Binding Path=Document_done}" Header="Do" />
  • 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-13T22:11:37+00:00Added an answer on June 13, 2026 at 10:11 pm

    I think you are looking to project your result to an anonymous type like this:

    Update – project to concrete class

    public class NameAndDone {
      public string document_Name { get; set; }
      public bool document_Done { get; set; }
    }
    
    var doc = from c in projectE.Person_Documents
              join cw in projectE.Documents on c.Document_Id equals cw.Document_Id
              where c.Person_Id == 150
              select new NameAndDone {
                cw.document_Name,
                c.document_Done
              };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose i have the following tables : projects( project_id , project_name ) documents( document_id,document_name
Hey, I have 2 tables in PostgreSql: 1 - documents: id, title 2 -
I'm using tables in my document, and I want to be able to have
I have two tables: contacts: id, name 1 Alex 2 John documents: id, contactID,
I have two tables Table one is a list of documents documents: +-------------+---------------+ |
I have the following problem: I have 3 tables: If you want to create
I have a Document Entity and I want that the user of the website
I have a big load of documents, text-files, that I want to search for
I have a set of tables Documents Groups Keywords Their are related as follows
I currently have two tables, one with documents, and another with ratings doc_id |

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.