原创 Web service failed to start because of wrong IIS configuration

/*Author: Jiangong SUN*/ I've encountered a problem when I deploy a web service in a new environment. While I've used

原创 BulkCopy from source table to destination table with a column whose type is different

/*Author: Jiangong SUN*/ I've encountered a problem when I do a sql bulk copy from a table in staging to the same tabl

原创 CSharp - Type Inference and usage of var

/* Author: Jiangong SUN */ Type Inference a concept of CSharp 3 that is used with keyword var, which lets the compiler

原创 How to save SQL Server data as Insert INTO SQL Script

/*Author : Jiangong SUN*/ If you have wondered to clean a table data, and want to save the original data in a backup s

原创 How to create a generic WCF service proxy ?

/* Author: Jiangong SUN */ WCF Service Client: /// <summary> /// A WCF service client. /// </summary> ///

原创 Introduction to dependency injection with unityContainer

/* By Dylan SUN */ This article is just a simple introduction to unityContainer. If you have already used unityContain

原创 Introduction to configuration wrapper

/* By Dylan SUN */ In your applications, you are certainly using the configuration sections like appSettings for custom

原创 WPF - Conditional binding with trigger

/* By Dylan SUN*/ WPF conditional binding enables the application to have different behaviors based on a pre-defined co

原创 Just4Fun - Comparaison between const and readonly in C#

/* By Dylan SUN */ Today let us talk about const and readonly. const is considered as compile-time constant readonly

原创 How to backup and restore database in SQL Server

/*By Dylan SUN*/ If you want to backup and restore one database in SQL Server. Firstly, create a shared folder, and a

原创 Just4Fun - PreIncrement vs PostIncrement

/* By Dylan SUN */ Pre-Increment and Post-Increment are used frequently in conditions for loops. Here we are playing a

原创 How to launche powershell script in C#

/**By Alex SUN**/ If you want to launch a powershell script in CSharp application, you don't necessarily need to const

原创 [Project organization] - structure refactoring with TFS

/By Dylan SUN/ There are something you need to pay attention to when you make a project structure refactoring. You coul

原创 CSharp - Memory leaks problem detection and solution

/* By Dylan SUN*/ Out of memory exception happens when server doesn’t have enough memory to run the application. This

原创 MS SQL Server - How to change an existing column to auto-increment column

/* BY Dylan SUN*/ In SQL server when you want to make an existing column to be auto-incremented. The following code is