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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:58:59+00:00 2026-05-11T18:58:59+00:00

I’ve been programming in C# 2.0 WinForms for a while now. I’m starting to

  • 0

I’ve been programming in C# 2.0 WinForms for a while now. I’m starting to get into ASP.NET and the new MVC framework and the new features of C# 3.5. I’ve only read a little on LINQ to SQL but have made a few test apps to try it out. In my WinForms apps, I usually had some sort of data access layer, and wrote all the SQL myself. Of course, if something can do that CRUD for me, I’m all for it.

I followed the tutorials on the http://www.asp.net/mvc website and did both the Entity Framework example and the LINQ to SQL example. So far, they both seem pretty similar. LINQ feels more like SQL, but the Entity Framework feels more like C#.

My questions are:

  1. Is one method better than the other?
  2. What are the benefits of one over the other?
  3. Is it possible to see the SQL that is generate when using either of the methods?
  4. Since I’m new to the ASP world, are web developers leaning on one side?
  • 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-11T18:58:59+00:00Added an answer on May 11, 2026 at 6:58 pm

    2: LINQ-to-SQL has the benefits of being simple (but still well engineered) – but the downside of being simple ;-p

    • LINQ-to-SQL only works on SQL Server (Entity Framework is pluggable; 3rd party variants of LINQ-to-SQL like DBLinq cover some other providers)
    • Entity Framework supports more abstraction between the data (storage) model and the object model – LINQ-to-SQL is literal table/column => class/property[|field]
    • LINQ-to-SQL is actually more “complete” in the stuff it does do:
      • EF doesn’t support UDFs
      • EF doesn’t support things like sub-expression invoke (for custom expression trees)
      • EF doesn’t support some “obvious” methods like Single()
      • EF doesn’t have some of the TSQL optimisations that LINQ-to-SQL uses

    Basically EF at the moment is a bit more of a “v1” (or even “v0.9”) product. However (and importantly) – EF is likely to have a proper next version in .NET 4.0 etc, where-as LINQ-to-SQL is going to see a lot less change. It is still being maintained, but famously Microsoft have chosen Entity Framework as the flagship product (rather than co-evolve both products essentially into each-other). You should think about the long term plans.

    At the moment, I’m very happy to use LINQ-to-SQL, but EF is on the long term… so I’m using repository etc to hide some of the gory implementation details – a bit of a leaky repository, but pragmatic.

    3: With LINQ-to-SQL, assign a TextReader to dataContext.Log; Console.Out works well – or I have one that writes to the trace.asax. With EF, ToTraceString.

    4: I suspect it breaks down a lot by complexity. People using SQL Server with simple models, or who are happy to have a storage model that shines into the object model tend to be using LINQ-to-SQL at the moment (from what I see). People with more complexity and other databases tend to use NHibernate ;-p And then some EF. I’m wondering how much this will change when EF is next released in .NET 4.0…

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

Sidebar

Ask A Question

Stats

  • Questions 166k
  • Answers 166k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer On 404's, generally speaking, yes. As far as doing permanent… May 12, 2026 at 1:23 pm
  • Editorial Team
    Editorial Team added an answer It sounds like you may have a 64-bit build of… May 12, 2026 at 1:23 pm
  • Editorial Team
    Editorial Team added an answer No, only in the current translation unit. I.e. every file… May 12, 2026 at 1:23 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS
I am currently running into a problem where an element is coming back from

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.