April 2017
Intermediate to advanced
564 pages
24h 7m
English
We will start by creating a Core folder and defining a few classes, which will be common for all the managers and referenced by all business managers.
IActionManager is the interface that exposes four common methods to perform the CRUD operations. Any manager implementing this interface has to define the implementation for CRUD operations:
public interface IActionManager { void Create(BaseEntity entity); void Update(BaseEntity entity); void Delete(BaseEntity entity); IEnumerable<BaseEntity> GetAll(); IUnitOfWork UnitOfWork { get; } void SaveChanges(); }
BaseEntity is our base entity class from which every entity in the common layer is derived.
Next, we will add the abstract BusinessManager class, which will ...
Read now
Unlock full access