QualifiedCellIdBoolean.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 / Map / ViewGeneration / Structures / QualifiedCellIdBoolean.cs / 1305376 / QualifiedCellIdBoolean.cs

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

using System.Data.Mapping.ViewGeneration.CqlGeneration; 
using System.Text;

namespace System.Data.Mapping.ViewGeneration.Structures
{ 
    // A class that denotes "T.booleanVar", e.g., "T1._from2"
    // It is a subclass of CellIdBoolean with an added block alias 
    internal class QualifiedCellIdBoolean : CellIdBoolean 
    {
 
        #region Constructor
        // effects: Creates a boolean of the form "block._from"
        internal QualifiedCellIdBoolean(CqlBlock block, CqlIdentifiers identifiers, int originalCellNum)
            : base(identifiers, originalCellNum) 
        {
            m_block = block; 
        } 
        #endregion
 
        #region Fields
        private CqlBlock m_block;
        #endregion
 
        #region Methods
        internal override StringBuilder AsCql(StringBuilder builder, string blockAlias, bool canSkipIsNotNull) 
        { 
            // We ignore the given blockAlias since we already have a fully qualified name
            string qualifiedName = CqlWriter.GetQualifiedName(m_block.CqlAlias, SlotName); 
            builder.Append(qualifiedName);
            return builder;
        }
        #endregion 

    } 
} 

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