April 2017
Intermediate to advanced
564 pages
24h 7m
English
From this preceding code for the business layer project, we can see that we access the data source via the repository pattern. This enterprise application pattern has been already briefed upon in the previous chapter. Our repositories are present in the data access layer. Although we have a data access layer with repositories present in almost every service for each department, let's just take a look at one of the repositories, which is for the HR department:
/// <summary> /// This repository class takes care of disposing underlying dbcon/context objects /// </summary> public interface IRepository { TEntity GetEntity<TEntity>(int id) where TEntity : class; IEnumerable<TEntity> GetAll<TEntity>() ...Read now
Unlock full access