One Author can have many Book. Table Book have Author_Id on it.
I Want a LINQ query that returns a IQueryable<Book> (So I can navigate with Book.Author.Name and stuff), but Only 1 Book per Author.
How do I do that with a LINQ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Pretty sure this is it:
Edit: Less hacky way to do this: