Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / CqlGeneration / UnionCqlBlock.cs / 1 / UnionCqlBlock.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Text; using System.Data.Mapping.ViewGeneration.Structures; using System.Data.Common.Utils; namespace System.Data.Mapping.ViewGeneration.CqlGeneration { // This class corresponds to Union nodes in the tree internal class UnionCqlBlock : CqlBlock { #region Constructor // effects: Creates a union CqlBlock with SELECT (slotinfos), FROM // (children), WHERE (true), AS (blockAliasNum) internal UnionCqlBlock(SlotInfo[] slotInfos, Listchildren, CqlIdentifiers identifiers, int blockAliasNum) : base(slotInfos, children, BoolExpression.True, identifiers, blockAliasNum) { } #endregion #region Methods // effects: See CqlBlock.AsCql internal override StringBuilder AsCql(StringBuilder builder, bool isTopLevel, int indentLevel) { // Simply get the Cql versions of the children and add the union // operator between them bool isFirst = true; foreach (CqlBlock child in Children) { if (false == isFirst) { StringUtil.IndentNewLine(builder, indentLevel + 1); builder.Append(OpCellTreeNode.OpToCql(CellTreeOpType.Union)); } isFirst = false; builder.Append(" ("); child.AsCql(builder, isTopLevel, indentLevel + 1); builder.Append(')'); } return builder; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Text; using System.Data.Mapping.ViewGeneration.Structures; using System.Data.Common.Utils; namespace System.Data.Mapping.ViewGeneration.CqlGeneration { // This class corresponds to Union nodes in the tree internal class UnionCqlBlock : CqlBlock { #region Constructor // effects: Creates a union CqlBlock with SELECT (slotinfos), FROM // (children), WHERE (true), AS (blockAliasNum) internal UnionCqlBlock(SlotInfo[] slotInfos, Listchildren, CqlIdentifiers identifiers, int blockAliasNum) : base(slotInfos, children, BoolExpression.True, identifiers, blockAliasNum) { } #endregion #region Methods // effects: See CqlBlock.AsCql internal override StringBuilder AsCql(StringBuilder builder, bool isTopLevel, int indentLevel) { // Simply get the Cql versions of the children and add the union // operator between them bool isFirst = true; foreach (CqlBlock child in Children) { if (false == isFirst) { StringUtil.IndentNewLine(builder, indentLevel + 1); builder.Append(OpCellTreeNode.OpToCql(CellTreeOpType.Union)); } isFirst = false; builder.Append(" ("); child.AsCql(builder, isTopLevel, indentLevel + 1); builder.Append(')'); } return builder; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OpenTypeLayoutCache.cs
- ToolStripMenuItem.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TimelineClockCollection.cs
- ModelItem.cs
- SqlAliaser.cs
- DecimalSumAggregationOperator.cs
- HashMembershipCondition.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataService.cs
- MDIClient.cs
- GACMembershipCondition.cs
- LocatorBase.cs
- EditorPart.cs
- ContextMenuAutomationPeer.cs
- DataPagerField.cs
- ToolZoneDesigner.cs
- mactripleDES.cs
- SecurityCriticalDataForSet.cs
- HtmlInputPassword.cs
- ImportOptions.cs
- ScriptServiceAttribute.cs
- XNodeValidator.cs
- RegisteredScript.cs
- ToolboxItemCollection.cs
- ManagedIStream.cs
- bindurihelper.cs
- TextBox.cs
- PrintDocument.cs
- ZeroOpNode.cs
- EditBehavior.cs
- UnsafeNativeMethods.cs
- XmlSiteMapProvider.cs
- FrameworkContentElement.cs
- XmlDownloadManager.cs
- _SslState.cs
- UserInitiatedRoutedEventPermission.cs
- JapaneseCalendar.cs
- ServerIdentity.cs
- ListSourceHelper.cs
- ListParaClient.cs
- SignatureDescription.cs
- TagMapInfo.cs
- PasswordTextContainer.cs
- TrustLevel.cs
- StringValidatorAttribute.cs
- AspNetSynchronizationContext.cs
- Font.cs
- ClientTargetSection.cs
- AdornerHitTestResult.cs
- MarkupProperty.cs
- SizeConverter.cs
- LeaseManager.cs
- KoreanCalendar.cs
- MatrixKeyFrameCollection.cs
- SystemNetworkInterface.cs
- ToolStripCustomTypeDescriptor.cs
- CodeSnippetExpression.cs
- OdbcConnectionHandle.cs
- Wow64ConfigurationLoader.cs
- XDRSchema.cs
- CompilerInfo.cs
- ThumbAutomationPeer.cs
- BaseAddressPrefixFilterElement.cs
- CommentEmitter.cs
- MultiSelectRootGridEntry.cs
- EditingCommands.cs
- DataControlLinkButton.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- CryptoConfig.cs
- DocumentOrderQuery.cs
- UserNamePasswordValidationMode.cs
- DbDeleteCommandTree.cs
- RC2.cs
- assertwrapper.cs
- MergeFilterQuery.cs
- BinaryFormatterWriter.cs
- CategoryEditor.cs
- DoubleAnimation.cs
- TextParagraph.cs
- BaseResourcesBuildProvider.cs
- XmlnsCache.cs
- ServiceBuildProvider.cs
- ClickablePoint.cs
- AgileSafeNativeMemoryHandle.cs
- WizardPanel.cs
- MissingFieldException.cs
- HyperLinkField.cs
- DbParameterCollectionHelper.cs
- RealizationDrawingContextWalker.cs
- TabItem.cs
- ObjRef.cs
- XPathItem.cs
- GeneralTransform.cs
- BitmapEffectDrawingContextWalker.cs
- InvalidateEvent.cs
- PathData.cs
- InvalidDataException.cs
- CodeArrayIndexerExpression.cs
- PeerUnsafeNativeCryptMethods.cs