//--------------------------------------------------------------------- // // 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 { } }