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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:56:36+00:00 2026-06-03T14:56:36+00:00

Is creating a Repository pattern implementation on top of Linq to Sql a good

  • 0

Is creating a Repository pattern implementation on top of Linq to Sql a good design for a medium size public faced web application?

The app only deals with Sql sever backend and it requires rapid development

I really like LINQ2SQL since it’s a neat DAL. I thought of EF but it’s too much for this project.

Many thanks in advance for the suggestions.

  • 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-03T14:56:37+00:00Added an answer on June 3, 2026 at 2:56 pm

    A large tenet of DDD, from which repository pattern originates, is to create an application which can evolve “easily” over its lifespan. In the future, you may find that Linq2Sql is inadequate for your needs, or (more likely) that the technology was retired (as Linq2Sql would be in favor of EF), etc. Using the repository pattern means you are writing application code against a solid, well-known concept, in an abstract fashion. The actual implementation is hidden from your various application features, meaning you can swap them out in the future as needed.

    There are other benefits, too, like allowing a component that uses a repository to be used independently of its environment. Say you have a component that uses a repository, and then you find that you need to be able to use this component in a service to do nightly jobs. You could create a service that uses the same code, but uses an implementation of repository that interacts with a web service, rather than the database. You wrote the code once, just flipped some switches.

    Another big reason is unit testing. You don’t need to unit test that your ORM or persistence API works, you need to unit test that your application that would otherwise interact with persistence works as expected.

    So yeah, I think it’s good design.

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

Sidebar

Related Questions

Consider an implementation of the Repository Pattern (or similar). I'll try to keep the
I've been creating a nice T4 template for a repository pattern for my entities.
I have a generic Repository implementation on top of Linq2SQL. Basically, it uses Table
I am creating a sample, application to understand repository and factory method patterns together,
I have an MVC3 site with EF4.1 and repository/unit of work pattern and creating
I have implemented the repository pattern using the following generic interface. public interface IRepository<T>
When you develop an ASP.NET application using the repository pattern, do each of your
When creating a repository class, eg. CustomerRepository, should my methods be static? Or should
I am thinking about creating a new repository in SVN for a section of
I want to know how most people are dealing with the repository pattern when

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.