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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:07:37+00:00 2026-06-18T09:07:37+00:00

I need to use entity framework to query many databases at once, but I

  • 0

I need to use entity framework to query many databases at once, but I want all the queries to happen at the same time, and for me to be notified when it has all completed.

I have been using the Task Parallel Library and thought may be that can be used to achieve this… by firing off each task in a loop, changing the connection string in each iteration so it would hit a different db. However, in my experience of task parallel library you only know when each individual task has completed and not a batch.

I am working in an MVC web environment not WPF.

  • 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-18T09:07:38+00:00Added an answer on June 18, 2026 at 9:07 am

    If you are using something like.

    Task myTask = task.Factory.StartNew( () => {
            some code
    } );
    
    Task myTask2 = task.Factory.StartNew( () => {
            some code again
    } );
    

    then you use the wait method.

    myTask.Wait();
    myTask2.Wait();
    

    which will not pass until both tasks are complete.

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

Sidebar

Related Questions

I query-ing this from entity framework using WCF, and i want to use the
I am just starting to use the Entity Framework 4 for the first time
We use Entity Framework 5, but have a requirement to ALSO use a normal
I use Entity Framework and want to use DDD principles. However, there are some
If I use entity framework with linq to sql to query it and I
To define an Entity Framework -serializable classes (EF Code First) we need to use
I use jersey-client to consume a REST service. I need both the requested Entity
Im wanting to use Entity Framework POCO in a disconnected (from context) mode. In
Using ASP.NET MVC and Entity Framework, I encounter some attach/detach errors when I need
I use entity framework and have a set of users: public class DbModel :

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.