Category Archives: CodeProject

CRUD Operations with ASP.Net Web API using FluentNHibernate, Repository pattern

Introduction In this step-by-step article we will discuss all about CRUD (Create Read Update Delete) operations with Web API using Repository pattern. Pre-requisites To implement and play with the source code one should have: – basic knowledge of asp.net MVC – basic knowledge of REST services – require Visual Studio 2012 or later with asp.net

Read More

Covariance and Contravariance in C#4.0

Introduction In this whole artcile we will learn all about Covariance and Contracvariance, what were the issues with development before these two. Definition These two Covariance and Contravariance have been introduced in C#4.0. As per msdn we simply define: “covariance and contravariance enable implicit reference conversion for array types, delegate types, and generic type arguments.

Read More

Learning The S.O.L.I.D Programming Principles: Dependency inversion principle [Part – VI]

History: In our previous posts we learned ‘What is S.O.L.I.D. Programing Principles’ and a detailed explalantion with code of Single Responsibility Principle, Open/closed Principle, Liskov Substitution Principle and Interface Segregation Principle. S.O.L.I.D. is an acronym introduced by Michael Feathers as: S for SRP: Single responsibility principle O for OCP: Open/closed principle L for LSP: Liskov

Read More

Learning The S.O.L.I.D Programming Principles: Interface segregation principle [Part – V]

History: In our previous posts we learned ‘What is S.O.L.I.D. Programing Principles’ and a detailed explalantion with code of Single Responsibility Principle, Open/closed Principle and Liskov Substitution Principle. S.O.L.I.D. is an acronym introduced by Michael Feathers as: S for SRP: Single responsibility principle O for OCP: Open/closed principle L for LSP: Liskov substitution principle I

Read More

Learning The S.O.L.I.D Programming Principles: Liskov substitution principle [Part – IV]

History: In our previous posts we learned ‘What is S.O.L.I.D. Programing Principles’ and a detailed explanation with code of Single Responsibility Principle and Open/closed Principle. S.O.L.I.D. is an acronym introduced by Michael Feathers as: S for SRP: Single responsibility principle O for OCP: Open/closed principle L for LSP: Liskov substitution principle I for ISP: Interface

Read More

Learning The S.O.L.I.D Programming Principles: Open Closed Principle [Part – III]

History: In our previous posts we learned ‘What is S.O.L.I.D. Programing Principles’ and a detailed explanation with code of Single Responsibility Principle. S.O.L.I.D. is an acronym introduced by Michael Feathers as: S for SRP: Single responsibility principle O for OCP: Open/closed principle L for LSP: Liskov substitution principle I for ISP: Interface segregation principle D

Read More

Learning The S.O.L.I.D Programming Principles: Single responsibility principle [Part – II]

History: In our previous ‘Learning The S.O.L.I.D Programming Principles: Overview [Part – I]’, we have learned all about S.O.L.I.D: it is an acronym introduced by Michael Feathers as: S for SRP: Single responsibility principle O for OCP: Open/closed principle L for LSP: Liskov substitution principle I for ISP: Interface segregation principle D for DIP: Dependency

Read More

Learning The S.O.L.I.D Programming Principles: Overview [Part – I]

Earlier, I was thinking that learning of Object Oriented Programings (OOPs) is enough to write robust, scalable and re-usable application/program. When I discussed the things with Joseph Bulger, I was shocked because I was thinking that my programming skills are within OOPs and learning of new languages like C/C++/C#/F# etc. So, I started learning “The

Read More