SqlDataSourceQuery.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / SqlDataSourceQuery.cs / 1 / SqlDataSourceQuery.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.UI.Design.WebControls { 
 
    using System.Collections;
    using System.Diagnostics; 
    using System.Web.UI.WebControls;

    /// 
    /// Represents a single query of a SqlDataSource (Select/Insert/Update/Delete). 
    /// 
    internal sealed class SqlDataSourceQuery { 
 
        private string _command;
        private SqlDataSourceCommandType _commandType; 
        private ICollection _parameters;


        ///  
        /// 
        public SqlDataSourceQuery(string command, SqlDataSourceCommandType commandType, ICollection parameters) { 
            Debug.Assert(command != null); 
            Debug.Assert(parameters != null);
            _command = command; 
            _commandType = commandType;
            _parameters = parameters;
        }
 

        public string Command { 
            get { 
                return _command;
            } 
        }

        public SqlDataSourceCommandType CommandType {
            get { 
                return _commandType;
            } 
        } 

        public ICollection Parameters { 
            get {
                return _parameters;
            }
        } 
    }
} 
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK