Something To Code

All about programming and information security

Why interface for decoupled system? A note on how to design decoupled system in ASP.NET MVC

Interface doesn't do anything like classes and abstract classes, it just defines what the class will performs if some class inherits it. An interface also be inherit from another interface. If we take an example of USB (Universal Serial Bus), Its an interface which has signature of Connection functionality. The USB interface only know I have to connect with Desktop Computer or laptop or anything, but it does not know what implementation will come to connection. It may be Pen drive(mass storage), It may be Printer(COM Ports) [More]

Generic Repository Pattern MVC

The good Architecture is heart of any project. The developer always looking for great architecture that reduces repetitive code and separates the Data Access and Business Logic. So we will be creating our generic repository using ASP.NET MVC and Entity Framework. If you don’t know about Entity Framework please CLICK HERE to get started with Entity Framework. So before getting started with repository pattern firstly we have to understand what is the repository pattern? and Why we want it? [More]