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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:11:16+00:00 2026-05-17T21:11:16+00:00

I have a database with about 160 tables (it’s a shock ! I thought

  • 0

I have a database with about 160 tables (it’s a shock ! I thought it had about 50…).
We use a codebase with no DAL, and we want to start using MS Entity Framework (that’s the latest, hottest thing in .net DAL, right ?) so we can use Linq and other state-of-the-art-3-years-ago stuff.

I tried to automatically generate the whole DB model, but it seems to be a nightmare to use and modify. For example, it has a few tables not automatically linked (maybe the DB model is lacking in a few areas).

I then tried to generate each “area” of the database separately, but two points bother me.

First of all, it needs a different connection string for every model. WTF. Plus, we have clients with different databases, and maintaining 10 connection strings across 30 clients will be a nightmare.

Second of all, it doesn’t appears to be able to link to the classes in other models. Maybe I just didn’t find it ? With around 10-15 “modules”, most of wich linked together, it would defeat one of the purposes of a unified DAL. For example, we have a “file” table, linked to the contacts, the tech support, the products, the web, etc. We could still use the IDs, but it’s kinda sad.

So, what would you do ? One huge model very complicated to create and maintain ; or a few smaller ones, easier to update, but a bit more complicated to use on a day-to-day basis ? What do you use, and what are the upsides and downsides ?

  • 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-17T21:11:16+00:00Added an answer on May 17, 2026 at 9:11 pm

    First, about the Connection Strings, yes, each model does need its own Connection String, because it’s an EntityConnection which not only contains the information about how to connect to the database but also information about how to find the 3 part of your model at runtime (i.e. SSDL, CSDL and MSL). So when working with one database, even the database connection string part is the same, but the Metadata part is different for each model and that’s why you need them all to be there.

    Second, you got it right, having one big EDM containing all the entities is NOT a good practice and is not recommended. This post contains a detailed discussion about the reasons as well as a few guidelines about how to separate your database tables into different models.

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

Sidebar

Related Questions

I have a database with about 30 tables and 5 tables of them is
Right now I have a database (about 2-3 GB) in PostgreSQL, which serves as
We have an InnoDB database that is about 70 GB and we expect it
There have been several questions recently about database indexing and clustered indexing and it
Say I have at database table containing information about a news article in each
We have a system that has a Mysql database with about 2Gigs of data.
Ok, here is my dilemma I have a database set up with about 5
I have about 150 000 rows of data written to a database everyday. These
We have an SQL 2005 database backend for our website, currently about 10GB in
I have database with many tables. In the first table, I have a field

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.