Posts

Showing posts from February, 2013

sqlhelper.cs source code..

using System; using System.Data; using System.Xml; using System.Data.SqlClient; using System.Collections; namespace Microsoft.ApplicationBlocks.Data {     /// <summary>     /// The SqlHelper class is intended to encapsulate high performance, scalable best practices for     /// common uses of SqlClient.     /// </summary>     public sealed class SqlHelper     {         #region private utility methods & constructors         //Since this class provides only static methods, make the default constructor private to prevent         //instances from being created with "new SqlHelper()".         private SqlHelper() { }         /// <summary>         /// This method is used to attach array of SqlParameters to a SqlCommand.         ///         /// This method will assign a value of DbNull to any parameter with a direction of         /// InputOutput and a value of null.         ///         /// This behavior will prevent default values f