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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:19:00+00:00 2026-06-18T02:19:00+00:00

I am currently building an ASP.net MVC application, which has be broken down into

  • 0

I am currently building an ASP.net MVC application, which has be broken down into multiple modules (as well as a generic class library).

I have implemented a Unit Of Work pattern for my first module. This unit of work class contains a number of different repositories.

However, I was wondering whether or not it is good idea to have a separate Unit Of Work class for each module?

  • 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-18T02:19:01+00:00Added an answer on June 18, 2026 at 2:19 am

    Well, EF supplies you with UnitOfWork and Repository patterns implemented itself. Usually they are not exactly what you want and it seem nice to add some methods to that native EF Repositories, but in most cases it doesn`t worth the trouble.

    Implementing your own Repository based on EF is not a good idea if your project is simple. It adds a lot of work but not as much of value.

    Implementing UnitOfWork based on EF is complete different story. The only reason i can see to do it is “to have different UoW for different parts of the solution”. Avoid it otherwise, really.

    We tried to add both this approaches ignoring prebuilt ones in our project. It was completely reasonable because we were designing modular solution and we didn`t even know how many modules we would have at the end. We expected to add new modules to the system when it is already running and heavy loaded. And i can say that it took a lot of time to develop such application. When you realize that you need to have access to one more entity from some module leads to changes in several places – the first evidence of inefficient design.

    So, KISS and YAGNI are against it. If you are tangled by question “should i add this stuff to my project” – just don`t. You need a good reason to implement this parts yourself, not just some “nice design” bias, because it adds lots of complexity. Even if you think you would need it some day – wait until that day. If you would try to estimate which miscalculation would be more disastrous i am pretty sure that it is much easier to add something new to your project then remove something already existing.

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

Sidebar

Related Questions

I'm building an application which (currently) consists of one web application (ASP.NET MVC) and
I am currently building a very small/simple web application in ASP.NET MVC with ADO.NET
My team is currently in the process of building an ASP.NET MVC application, and
I am currently building an ASP.Net-MVC Application using log4net for logging, but the logger
I am currently building an application using ASP.NET MVC. The data entry pages are
I'm building an ASP.NET MVC 2 site where I'm currently implementing an OpenID sign-up
I am currently building a custom Membership Provider for my Asp.net MVC website. I
I'm building an asp.net MVC 2 app. I have a list view which lists
I am building a web application in asp.net MVC and am thinking how I
I'm building an ASP.Net MVC 2 application with a component architecture. There are two

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.