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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:40:49+00:00 2026-06-11T16:40:49+00:00

Table name: Author AuthorID -> primary key FirstName LastName Table name: Titles ISBN ->

  • 0

Table name: Author

  • AuthorID -> primary key
  • FirstName
  • LastName

Table name: Titles

  • ISBN -> primary key
  • BookTitle
  • EditionNumber
  • CopyRight

Table name: AuthorISBN

  • ISBN -> foreign key
  • AuthorID -> foreign key

I can do:

var AuthorsAndISBNs =
            from author in database.Author
            join books in database.AuthorISBN
                on author.AuthorID equals books.AuthorID
            orderby author.LastName, author.FirstName
            select new { author.FirstName, author.LastName, books.ISBN };

However, I cannot do:

var authorsAndTitles =
           from title in database.Titles
           from book in title.AuthorISBN
           let author = book.Author
           orderby author.LastName, author.FirstName, title.BookTitle
           select new { author.FirstName, author.LastName, title.BookTitle };

I thought LINQ automatically creates properties based on foreign-key relationships, which enables you to easitly access related rows in other tables:(

Author has one-to-many relationship with AuthorISBN which has ‘many-to-one’ relationship with Titles

Please help! been stuck on this for days:'( THANK YOU!

  • 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-11T16:40:50+00:00Added an answer on June 11, 2026 at 4:40 pm

    In Order for LINQ let you access related rows in other tables, every table MUST have a PrimaryID. The issue was that ‘AuthorISBN’ Table did not have a primaryID, therefore no properties were being created:)

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

Sidebar

Related Questions

Here is what my tables look like: CREATE TABLE Author( authorID INT PRIMARY KEY,
For example, Comment table has foreign key at Author table. How do I create
Ok i have 2 tables. A book table with the the primary key book_id
[Book] isbn(PK),title,category_id,subcategory_id,price [Author] isbn(FK),author_id(PK),name [Category] category_id(PK),name [SubCategory] sub_category_id(PK),category_id(FK),name I have a database (not designed
I have 4 tables Titles having the following fields, id (PK), Name, AuthorId(FK) &
In my SQL 2008 database table, I have one column name AUTHOR that contains
I need help regarding JOIN tables to get category name & author name from
@Entity @Table(name = BOOKTEST) @NamedQueries({@NamedQuery(name = Booktest.findAll, query = SELECT b FROM Booktest b),
Is table name prefix for fields to be update not allowed in SQL ?
I have a table name that starts with an underscore does that give any

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.