Develop and Consume OData Web Services in WCF

What is OData? OData is an Open Data Protocol used to access data from various sources like Relational databases, file systems, etc. and exposes it to the consumers that can query or update data. OData is based upon Web technologies such as HTTP, Atom Publishing Protocol (AtomPub) and JSON to provide access to information from [...]


Problem loading ASP.Net project after installing VS 2010 SP1

Sometimes developer faces this problem on loading existing web projects that were hosted on local IIS server and using the same port number that has been used by the IIS Express for particular websites. IIS Express installed by default when you apply the SP1 for Visual Studio 2010. In my case, I installed VS 2010 [...]

Implementing Repository Pattern with Entity Framework – Code First Model Approach

When working with Entity Framework - Code First model approach, developer creates POCO entities for Database tables. The benefit of using Code First model is to have POCO entity for each table that can be used as either WCF Data Contracts or you can apply your own custom attributes to handle Security, Logging, etc. and [...]

Logging Messages from Windows Service to Windows Form using WCF Duplex Messaging

As you all know windows services run in background and user can start or configure them through Services panel in Windows Operating System. In order to do the logging to check what the service is doing you can log messages in database, message queues, event logs etc. But in order to send back and forth [...]

Using Code First in Entity Framework

Introduction Generally, entity framework is majorly used by adding an edmx file into your .Net solution and creating tables or dropping tables from existing SQL database. But in certain cases when we are working on large scale applications and having layered architecture with different layers (presentation, service, business and data access) it becomes quite difficult for [...]

Debugging javascript from Visual Studio

Open the Tools > Internet Options and click on Advanced tab. Uncheck "Disable script debugging" in the settings list. Now for any function where you want to debug just specify debugger; like this. Example $(document).ready(function () { debugger;      alert("hello world!"); } That's all! Now just run the application in debug mode from visual studio [...]

Custom Plugin Framework in .Net

Sometimes we came in situation when we need to design an architecture which supports plugin of components at runtime. That facilitates developer to not to compile the main application again and again for new addition of components/plugins and just with a little configuration it should be activated in the application. Therefore, this post shows the [...]