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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:11:09+00:00 2026-06-07T03:11:09+00:00

I have a entity say Computers with properties Dnshostname and navigation property TechnicalProductsHosted. Computers

  • 0

I have a entity say Computers with properties Dnshostname and navigation property TechnicalProductsHosted. Computers to TechnicalProductsHosted is a many to one and one to many relationship. TechnicalProductsHosted is TechnicalProducts in the odata. Entity TechnicalProducts has a navigation property ResponsibleUser with a many to one relationship. ResponsibleUser is Employee in odata. Employee has a navigation property Manager with a many to one realtionship. When i click on Manager it takes me to Employee entity.I wish to get the list of manager names. I am using Linqpad. Below is the code.

void Main()
    {
    var a = from cpuid in Computers
          where cpuid.DnsHostName == "xyz"
          select new {
    ITManager = cpuid.TechnicalProductsHosted.Select (x => x.ResponsibleUser.Manager.Select(z => new { ITManager = z.Name })),
          };
    Console.WriteLine(a);
    }

This is the error.
‘LINQPad.User.Employee’ does not contain a definition for ‘Select’ and no extension method ‘Select’ accepting a first argument of type ‘LINQPad.User.Employee’ could be found (press F4 to add a using directive or assembly reference)

  • 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-07T03:11:12+00:00Added an answer on June 7, 2026 at 3:11 am

    I assume that Manager property is a singleton (it’s not a collection). In that case you can use Select on it.
    Instead use something like this:

    var q = from cpuid in Computers
         where cpuid.DnsHostName == "xyz"
         select new {
             ITManagers = cpuid.TechnicalProductsHosted
                 .Select (x => x.ResponsibleUser.Manager.Name)
         };
    

    This will give you a list of computers with the specified host name and on each one a list of managers who’s report is responsible for the products. Note that there are likely to be duplicates though.

    If you could describe what the query should achieve there might be better options.

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

Sidebar

Related Questions

Let say I have an entity user which has a one to many relationship
Say we have a entity Company that has a to-many relationship to the Employee
Say you have a one to one relationship in your entity model. The code
Say I have an entity MyEntity , and it has a formula-based property fmlaProp
Let's say I have an entity called EntityA . EntityA has a relationship to
Lets say I have an entity called User which has many Posts. My service
Let's say we have an entity that has attributes att1 and att2, where att1
Lets say thay I have an entity with name A.It has two columns named
We have an JPA @Entity class (say User) which has a @ManyToOne reference (say
Let's say I have an entity Author which has a name can write 0

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.