Repository and Service, mvcrepository
Repository and Service construction in project architecture construction
8. IDAL construction of the project Architecture
9. MSSQLDAL construction of the project Architecture
- BaseDAL implements the methods defined in the IDAL layer IBaseDAL Interface
- DALCollection defines the classes corresponding to each model and implements the interfaces and special methods for each Model in IDAL layer IDALCollection.
Note when defining a category:
- BaseDAL base class must be integrated
- The interface corresponding to the IDAL layer must be implemented
Example:
- DbContextFactory implements the EF context obtaining method defined in the IDAL layer IDbContextFactory Interface
Using the built-in Cache Policy of dotNet,System. Runtime. Remoting. Messaging. CallContextImplement caching to reduce the new process and improve data operation efficiency.
- DbSession defines and instantiates the data interfaces corresponding to each Model.
- DbSessionFactory: how to obtain the data warehouse interface in the idal layer IDbContextFactory Interface
Data Cache uses the cache policy mentioned above
10. Build the project architecture with IBLL
11. BLL construction of the project Architecture