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

The Archive Base Latest Questions

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

There are a few should I chose this or that questions on SO and

  • 0

There are a few “should I chose this or that” questions on SO and Google, as well as a lot comparing LINQ2SQL and LINQ2E. I’ve seen drawbacks, differences, cons, pros, limitations, etc.

I cannot say I’m an expert but I’d like to know “what would you do” if you faced this scenario and why.

I have to add stuff to an “old” 2.0 app that has been recently migrated to 3.5 (it kind of compiled out of the box, with some warnings here and there). As I have to add new stuff I want to start using LINQ (2SQL or Entities).

I’ve worked with Linq2SQL in the past and I like the fact that it’s a fast, easy to use solution… if you don’t want to do anything too weird. The natural 1..1 relationship between tables and such is godsend if you come from the old “Recordsets”. Also nice is the ability to have different datacontexts depending upon what set of tables you want to work with.

As the amount of things and new features grows, I’ve started considering the possibility to try the Entity Framework instead of Linq2SQL. What I don’t like about the latter is the inability to handle Many2Many relationships without resorting to a hack.

That’s where the Entity Framework comes in. But, you can’t have multiple “small models” like you do with Linq2Sql and the “datacontexts”, unless you sacrifice some stuff and some other stuff.

The database has 218 tables right now, and it doesn’t dramatically grow. A new table every now and then but we’re not talking about 10 tables a day. I’d say that we’ll have a “hard time” reaching 250 tables during the following year of development.

There are Many 2 Many relationships, some with the PK/PK only and some with aggregates (which Entity Framework doesn’t magically handle, but it can deal with them. This is the reason why I wouldn’t want to start with Linq2SQL unless the hack is “ok” and an accepted method.

What would you do? Compromise N..N relationships (knowing that even when there’s a hack, it will not be as elegant nor as “supported” as an integrated solution) and go with Linq2SQL and its “have many small datacontexts that you create and destroy” philosophy or, on the other hand, go on with Entity Framework, have a gigantic datamodel with all the tables or relationships and start from there?
Even when creating multiple models have drawbacks (see links up there) and having one giant model has cons.

There are also unofficial comments about Microsoft “dropping” Linq2SQL (I doubt but you never know). Our database is MSSQL and I don’t see that changing soon.

Any experience in the subject will be appreciated.

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

    I am dealing with many-to-many relationships just fine in Linq2SQL.

    See here for a neato extension method to solve your pains!

    Personally, I find using one monolithic model is the easiest to deal with.

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

Sidebar

Related Questions

There are a few windows service projects in our codebase that follow this model,
Morning all, Theres a few questions around this but none that really answer my
There are a few questions on SO about this, all of which seem to
I have an application that's locked down using forms authentication. There are few nightly
There are a few examples on unobtrusive events for pure JS. Most of questions
There are a few factory methods in Google Guava to create InputSuppliers, e.g. from
This question has been asked few times here and there, but you see all
I have seen a few articles on generic programming and how you should never
I know there is a few threads here that have been asked about the
in my page there are few hidden field which are filled with the correct

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.