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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:33:48+00:00 2026-05-12T05:33:48+00:00

I was wondering what would be the best way to create LINQ-to-SQL classes to

  • 0

I was wondering what would be the best way to create LINQ-to-SQL classes to deal with a given entity which is present in 10 different data sources. Let’s say I’ve got the same database in 10 different countries, each of them with a Customers table, and my goal is to access all of them programatically. Should I either create:

  1. a single ADO.NET Data Model then try
    to combine everything there;

  2. as many LINQ-to-SQL classes as
    existing data sources;

  3. a single LINQ-to-SQL class mapping a
    single data source, then
    manipulating its connection string.

Your feedback will be really appreciated. Thanks everyone for your comments!

  • 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-12T05:33:49+00:00Added an answer on May 12, 2026 at 5:33 am

    The first and the third options are practically equal, the thing that matters is your preference.
    If you don’t have schemas with the same name in all your data sources, you will have to make some manual changes to the model in any of these two cases.
    In EF you’ll have to remove the Schema attribute using XML Editor.
    In LINQ to SQL, you’ll have to remove the schema name prefix from the Source property in designer.

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

Sidebar

Related Questions

I'm wondering which is the best way to create two lookups table for square
I was wondering what would be the best way to create a feature strip
i was wondering what would be the best way to code a browser plugin
I was wondering, what would be the best way to validate an integer. I'd
I've been wondering what the best way to do this would be. I've got
I was wondering what would be the best way to save some resources and
I am wondering what the best way to create a site search is in
I'm just wondering, as a hypothetical example, what would be the best way to
I was wondering what would be the best way to handle errors in an
I am wondering what the best way to create two columns of dynamic lists

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.