UnitOfWork framework based on EntityFramework and Autofac (1) and entityframework
Previously, the company developed a system based on NopCommerce, but it does not support UnitOfWork. Recently, we want to develop a new project. Therefore, we have added UnitOfWork support based on the original project. As we are gradually improving, therefore, various problems may exist. This issue is provided for your reference only.
1. Project Structure
- Uow. Core: Core class library of the system, including interface and baseline definition;
- Uow. Data: Data Access class library, including UnitOfWork, Repository related classes, and entity type ing (OR maping) classes;
- Uow. Entities: data entity class library, including data entity definition class;
- Uow. Repositories: Data Warehouse class library, which provides some methods to access data at the business logic layer;
- Uow. Services: business logic class library that calls data warehouse to access data;
- Uow. Web: Application class library, Web application;
- Uow. Web. Framework: Basic Framework class library, which encapsulates some methods and classes between business logic and applications, such as paging controls and dependency injection.
2. Project Planning
Later, I will build the project into a background management system based on Bootstrap and angularjs, which will include some functions such as log management, task scheduling, Cache Management, permission management, And SSO Single Sign-On, development is being improved gradually.
3. Some Thoughts
As my personal abilities are limited, I feel that Uow is in this project. the Repositories layer is optional and can be merged to Uow. in the Services layer, I personally think that each layer should have its own responsibilities, so the Uow is retained. repositories layer.
4. Other Instructions
This project will be continuously developed and updated in the future. I will try my best to take the time to write the subsequent articles and give more detailed explanations. If you have valuable comments and suggestions, please note that.
5. Download
GitHub: https://github.com/weisenzcharles/Uow-Framework