Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / CqlGeneration / UnionCqlBlock.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcConnectionOpen.cs
- OpenTypeLayout.cs
- ParagraphVisual.cs
- QuadraticBezierSegment.cs
- Size3D.cs
- cookie.cs
- TaiwanLunisolarCalendar.cs
- CustomAttributeSerializer.cs
- UInt32.cs
- EnvironmentPermission.cs
- HtmlInputCheckBox.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DataGridHelper.cs
- WsatConfiguration.cs
- SizeFConverter.cs
- Int32Converter.cs
- CrossSiteScriptingValidation.cs
- XmlLoader.cs
- TextTreePropertyUndoUnit.cs
- DocumentGridContextMenu.cs
- RecordBuilder.cs
- CustomGrammar.cs
- CodeEventReferenceExpression.cs
- FeatureManager.cs
- QilInvokeLateBound.cs
- ReceiveContextCollection.cs
- FormDocumentDesigner.cs
- SoapAttributeAttribute.cs
- DetailsViewPageEventArgs.cs
- ElementUtil.cs
- AmbiguousMatchException.cs
- OutputCacheProfile.cs
- _SSPIWrapper.cs
- FreezableDefaultValueFactory.cs
- ResourcesChangeInfo.cs
- SQLBinaryStorage.cs
- DriveNotFoundException.cs
- Grant.cs
- DataSourceSelectArguments.cs
- BindingsCollection.cs
- WebBrowserHelper.cs
- SqlVisitor.cs
- securitycriticaldata.cs
- JournalEntryStack.cs
- CryptoConfig.cs
- LinqDataSourceStatusEventArgs.cs
- TableItemPattern.cs
- InvokePattern.cs
- DateTime.cs
- XmlILStorageConverter.cs
- Triangle.cs
- XPathExpr.cs
- ButtonRenderer.cs
- Range.cs
- RealizationContext.cs
- Converter.cs
- Color.cs
- EdmPropertyAttribute.cs
- MatchAttribute.cs
- StyleCollection.cs
- WebServiceMethodData.cs
- StylusButton.cs
- WbemProvider.cs
- DifferencingCollection.cs
- ProviderBase.cs
- StringKeyFrameCollection.cs
- SQLMoneyStorage.cs
- BuildManagerHost.cs
- BinaryCommonClasses.cs
- Journal.cs
- TrackingProfile.cs
- CfgArc.cs
- DuplicateWaitObjectException.cs
- PropertyDescriptorGridEntry.cs
- DebugHandleTracker.cs
- StateMachine.cs
- NullNotAllowedCollection.cs
- NamedPipeWorkerProcess.cs
- Splitter.cs
- SamlNameIdentifierClaimResource.cs
- Style.cs
- ActivityDesigner.cs
- VoiceInfo.cs
- DataTemplateSelector.cs
- ITextView.cs
- TypeUnloadedException.cs
- HtmlFormWrapper.cs
- SafeNativeMethods.cs
- AutoSizeComboBox.cs
- AdornerDecorator.cs
- TextDecorationLocationValidation.cs
- KernelTypeValidation.cs
- TextFormatterImp.cs
- XmlDataDocument.cs
- Brush.cs
- PolyLineSegment.cs
- CellTreeNode.cs
- PropertyInfoSet.cs
- SmtpNegotiateAuthenticationModule.cs
- UnsafePeerToPeerMethods.cs