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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:17:46+00:00 2026-06-01T01:17:46+00:00

At my current job I have implemented the Repository/UoW patterns on top of EntityFramework

  • 0

At my current job I have implemented the Repository/UoW patterns on top of EntityFramework and DbContext. The only valid reasons I have found for this would be if you didn’t want to depend on one particular ORM solution. I just wanted to see if anyone ever did this and, half way through the project (say, a year down the road) decided: “Geez, I’m glad I implemented that Repository Pattern because I need to switch from EntityFramework to NHibernate.” Aside from crud and some basic queries with joins (using LINQ) I feel this extra layer of abstraction is annoying since you have to create the table in the database, write a repository, write a service (if you’re going for the typical 3 tiered arch) and the necessary front end like a controller and views.

Update:

Would like to know if anyone has switch ORM’s on a project before and why?

  • 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-01T01:17:47+00:00Added an answer on June 1, 2026 at 1:17 am

    You do not have to do this. I am not aware of any project that actually switched, and switching will actually include a lot of work anyway.
    If you read Ayende’s blog you will find a lot of points against repositories.

    The only reason to do this is when you are developing a framework that can be used with several ORMs based on specific use case.

    Moreover, having a repository per table is very wasteful of developer’s time.
    Even if you go with repositories, having one generic repository with some entity-specific extensions should be more than enough.

    Having said all this, I still do use repositories, mostly because I dislike direct references to third-party libraries in unrelated code. But this is a question of preference, and not a best practice I can prove.

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

Sidebar

Related Questions

We have implemented quartz for scheduling.Every job produced have different key.It was working fine
At my current job we have a CMS system that is .NET/SQL Server based.
I have a Windows service that processes jobs. A job in this service is
In my current job, I have to run SQL script once in a while
Current Process: I have a tar.gz file. (Actually, I have about 2000 of them,
At my current job, we are currently implementing UML and RUP for the day
I have been trying to implement a tree representation of Autosys job schedules at
Are there any exemplary examples of the GoF Observer implemented in Python? I have
We currently have a SQL Agent Job that runs once a week to identify
I'm struggling with using ClearCase at my current job and it's a REAL pain,

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.