How to backup/restore IIS7 configuration

Backup/Restore via the command line Backing up IIS7 configuration is as simple as copying the \windows\system32\inetsrv\config directory (and subdirectories) into a backup directory, so you don’t need anything special to do it.  Just include this directory in whatever your OS/content back-up plan is, or write a custom script to do it. To help make managing… Continue reading How to backup/restore IIS7 configuration

Building OrderBy Lambda Expression from Property Name in C#

Introduction: Here in this post, I am going to see how to make a lambda expression from a property name of a particular entity, and use it for OrderBy shorting for both IQueryable and IEnumerable sources. Background: Let’s say we have a model. public class Phone { public double Price { get; set; } public… Continue reading Building OrderBy Lambda Expression from Property Name in C#