Command.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / Command.cs / 1305376 / Command.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner  [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 

namespace System.Data.Common.EntitySql.AST 
{
    using System;
    using System.Globalization;
    using System.Collections; 
    using System.Collections.Generic;
 
    ///  
    /// Represents eSQL command as node.
    ///  
    internal sealed class Command : Node
    {
        private readonly NodeList _namespaceImportList;
        private readonly Statement _statement; 

        ///  
        /// Initializes eSQL command. 
        /// 
        /// optional namespace imports 
        /// command statement
        internal Command(NodeList nsImportList, Statement statement)
        {
            _namespaceImportList = nsImportList; 
            _statement = statement;
        } 
 
        /// 
        /// Returns optional namespace imports. May be null. 
        /// 
        internal NodeList NamespaceImportList
        {
            get { return _namespaceImportList; } 
        }
 
        ///  
        /// Returns command statement.
        ///  
        internal Statement Statement
        {
            get { return _statement; }
        } 
    }
 
    ///  
    /// Represents base class for the following statements:
    ///     - QueryStatement 
    ///     - InsertStatement
    ///     - UpdateStatement
    ///     - DeleteStatement
    ///  
    internal abstract class Statement : Node { }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.


                        

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