C# & ASP.NET - June 2015

Auto realod application config in .NET

Reflect config file changes in application in a runtime
In .NET working with configuration is really easy and there are bunch of .NET classes that rely on config values so you do not have to specify values in their constructors. For me it a common practice to instantiate database connections of WCF client by only creating an instance with parameterless constructor while keeping values in config file. In case you have to use these kind of classes in a long running process, like windows service on which other processes are depending on ... read more

Easy and simple way to bind ADO object to POCO object

Simple one way binding of ADO database objects to POCO
This article is base don the article I wrote in September last year. Basically I wrote this piece of code because I needed something really lite for one way binding. There are a bunch of light ORMs and ORM-Like solution, but both of them provide two way binding, but for me insert/delete/update commands were already handled by stored procedures as it was an existing solution which needed some new features, so I needed something to make reading a lot easier ... read more