Featured

Polymorphism

Polymorphism is one of the primary pillar of Object-oriented programming. Polymorphism allows you to invoke derived class method through a base class reference during runtime. In the base class the method is declared as virtual,and in the derived class we override the same method. The virtual keyword indicates, the method can be overridden in any …

Continue reading Polymorphism

Featured

Implementing the Repository and Unit of Work Patterns in an ASP.NET MVC Application

I went through quite some different approaches and improvements to make my domain layer based on unit of work and repository as clean/simple as possible with a minimum number of types/files, yet fully loose coupled and extensible. First of all I define an abstract generic repository type, containing very basic atomic operations: public IGenericRepository where …

Continue reading Implementing the Repository and Unit of Work Patterns in an ASP.NET MVC Application