| by Achyut Kendre | No comments

Unit Of Work Pattern

Why we need unit of work pattern? When we use repository design pattern we end up with creating repositories for every domain model. In real world application we need to manipulate (update/insert/delete) multiple model data together those are interdependent, then we end up with saving those model data separately, hence if one of the save […]

Read More
| by Achyut Kendre | No comments

Dependency Injections

What is Inversion of Control (IOC)? Inversion of Control (IoC) is a design principle .It is used to invert different kinds of controls in object-oriented design to achieve loose coupled classes. Here, controls refer to any additional responsibilities a class has, other than its main responsibility which may include control over the flow of an […]

Read More
| by Achyut Kendre | No comments

Generic Repository

In last post we use simple repository pattern.In simple repository when we add more and more repositories we end up with writing same code again and specially core for CURD operations. If you add more domain entities you need to write same code again and again to perform the CURD operations for various repositories. Only […]

Read More
| by Achyut Kendre | No comments

Repository Design Pattern – simple implementation

What is Repository Pattern? Repositories are classes or components that encapsulate the logic required to access data sources. They centralize common data access functionality, providing better maintainability and decoupling the infrastructure or technology used to access databases from the domain model layer. This lets you focus on the data persistence logic rather than on data […]

Read More