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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:55:12+00:00 2026-05-22T16:55:12+00:00

I have a user task join table – with ria services i go and

  • 0

I have a user task join table – with ria services i go and get the usertaskjoin based on the userId.

UserTaskQueueJoin = new ObservableCollection<UserTaskQueueJoin>( _context.UserTaskQueueJoins);

once i get this UserTaskJoin object I want to then get the tasks from a query im running.

_query = _query.Where(x => UserTaskQueueJoin.Any(t => t.UserTaskQueueJoinID == x.AssignedToTaskQueueID));

UserTaskQueueJoin – UserTaskQueueJoinID, UserID, TaskQueueID

TaskQueue – TaskQueueID, InstitutionId, TaskQueueName

Task – TaskID, TaskQueueID, TaskName

What I ultimately am doing is running a query on the task table to only return items that are within a taskqueue. my first code snippet above gets the taskqueues a user is in..

The query call above is clearly not working. I have tried with a .SelectMany and cannot get that to work.

  • 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-05-22T16:55:12+00:00Added an answer on May 22, 2026 at 4:55 pm

    If your model contains all the appropriate FK-type relationships, it might be as simple as :

    _query = _query.SelectMany(x => x.UserTaskQueueJoins.TaskQueues.Tasks);
    

    or even

    _query = _query.SelectMany(x => x.TaskQueues.Tasks);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose that I have 2 tables: [User] - UserID - Username [Task] - TaskID
I have the fllowing requirement, I have a model called Task to display user
I'm making a task-based program that needs to have plugins. Tasks need to have
I am quite new to web development and have a task to develop a
Say I have a User model, a Task model that belongs_to :user , :has_one
Suppose I have three entities. Department Task User User can publish some Task belonging
Suppose we have two models, Task and User. So a user can have many
For example, I have a Task MIS, the data is: Id User Task TaskStartTime
I have models as follows: User has_many goals, Goal has_many tasks, Task has_many day_tasks.
I have a rake task to populate a table. as follows: namespace :db do

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.