The Singleton – Design Pattern

The Singleton – Design Pattern The Singleton Design Pattern ensures that only a single instance of a given object can exist. It does this by making the class constructor private so that it will be the singleton itself, and singleton class has full control over when the class instance is created.  In order to gain access to […]

Read more โ†’

Select IN query using LINQ

In our SQL Query there is a situation when we want to fetch records based on records within the a Set of RecordID(primary key) Lets look in to one example I have a table  Employee which has the columns EmpId, EmpName, EmpDesg etc. You want to select the Employee Records from Employee table with EmpID within 61,62,63 […]

Read more โ†’

More on MVP Pattern – Part 2

Model-view-presenter (MVP) is a user interface design pattern engineered to facilitate automated unit testing and improve the separation of concerns in presentation logic. The model is an interface defining the data to be displayed or otherwise acted upon in the user interface. The view is an interface that displays data (the model) and routes user […]

Read more โ†’

Model-View-Presenter(MVP) :: Design Pattern

Model-View-Presenter (MVP) is a variation of the Model-View-Controller (MVC) pattern but specifically geared towards a page event model such as ASP.NET. For a bit of history, MVP was originally used as the framework of choice behind Dolphin Smalltalk. The primary differentiator of MVP is that the Presenter implements an Observer design of MVC but the […]

Read more โ†’