Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SmiEventStream.cs
- SerializationHelper.cs
- StylusPointPropertyInfoDefaults.cs
- DPTypeDescriptorContext.cs
- NumericUpDownAcceleration.cs
- DaylightTime.cs
- EmulateRecognizeCompletedEventArgs.cs
- FlowPosition.cs
- RawStylusInputCustomData.cs
- DrawToolTipEventArgs.cs
- TransformValueSerializer.cs
- ListControl.cs
- DataGridViewTopLeftHeaderCell.cs
- DataGridViewSelectedRowCollection.cs
- BindingExpressionBase.cs
- CompositeTypefaceMetrics.cs
- TrackingMemoryStream.cs
- PersonalizationStateInfoCollection.cs
- TCPClient.cs
- TransformPattern.cs
- VisualStyleInformation.cs
- SelectingProviderEventArgs.cs
- CompositeScriptReference.cs
- FlowLayout.cs
- _RequestLifetimeSetter.cs
- ObjectListItemCollection.cs
- InProcStateClientManager.cs
- SQlBooleanStorage.cs
- SqlDataSourceFilteringEventArgs.cs
- Stopwatch.cs
- ToolStripItemCollection.cs
- PolicyUnit.cs
- TextEditor.cs
- TextParagraphView.cs
- TraceHandlerErrorFormatter.cs
- TabControl.cs
- Decorator.cs
- MatchingStyle.cs
- FusionWrap.cs
- AspNetSynchronizationContext.cs
- DefaultDiscoveryService.cs
- DataDocumentXPathNavigator.cs
- WebBrowserDocumentCompletedEventHandler.cs
- XmlJsonReader.cs
- tibetanshape.cs
- GeneralTransform3DCollection.cs
- AssemblyUtil.cs
- XmlObjectSerializerWriteContext.cs
- SoapEnumAttribute.cs
- WebUtil.cs
- WebPartAddingEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- updateconfighost.cs
- BitmapScalingModeValidation.cs
- ArrayConverter.cs
- MemberExpression.cs
- CryptoProvider.cs
- ProxyWebPartManager.cs
- GotoExpression.cs
- MembershipUser.cs
- ImplicitInputBrush.cs
- ConsoleEntryPoint.cs
- Attributes.cs
- EventHandlerList.cs
- mediaeventargs.cs
- DeferredElementTreeState.cs
- WebBrowserDesigner.cs
- SessionState.cs
- ResourceProviderFactory.cs
- PackageFilter.cs
- IpcClientManager.cs
- InkPresenterAutomationPeer.cs
- CursorConverter.cs
- RoleService.cs
- ManipulationInertiaStartingEventArgs.cs
- PeerResolver.cs
- ReadingWritingEntityEventArgs.cs
- DataMemberListEditor.cs
- RedistVersionInfo.cs
- KoreanCalendar.cs
- DesignOnlyAttribute.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataTableMapping.cs
- arabicshape.cs
- XmlQuerySequence.cs
- DataTablePropertyDescriptor.cs
- SettingsPropertyCollection.cs
- TemplateColumn.cs
- WebBrowser.cs
- TextEncodedRawTextWriter.cs
- InkCollectionBehavior.cs
- StateMachineWorkflowDesigner.cs
- IisTraceWebEventProvider.cs
- PrinterSettings.cs
- TabletDevice.cs
- dataobject.cs
- KnownBoxes.cs
- TimeStampChecker.cs
- DirectoryGroupQuery.cs
- Size3DConverter.cs