Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HashMembershipCondition.cs
- RegisteredScript.cs
- VariantWrapper.cs
- DataGridRowAutomationPeer.cs
- ProcessHost.cs
- PersonalizationAdministration.cs
- ComponentChangingEvent.cs
- MetafileHeader.cs
- StylusEventArgs.cs
- AssemblyNameProxy.cs
- XmlSchemaSimpleTypeRestriction.cs
- Viewport3DAutomationPeer.cs
- Label.cs
- SafeRightsManagementPubHandle.cs
- Button.cs
- SourceFilter.cs
- FormViewCommandEventArgs.cs
- IImplicitResourceProvider.cs
- InternalConfigConfigurationFactory.cs
- ObjectRef.cs
- PauseStoryboard.cs
- QilStrConcatenator.cs
- SplitterEvent.cs
- WebPartDeleteVerb.cs
- DocumentSignatureManager.cs
- BrowserCapabilitiesFactory.cs
- CollectionContainer.cs
- TraversalRequest.cs
- HtmlFormParameterWriter.cs
- BinaryMessageEncodingBindingElement.cs
- SqlFileStream.cs
- X509Certificate.cs
- WebConfigurationHostFileChange.cs
- OleServicesContext.cs
- XmlSchemaComplexContent.cs
- DragDrop.cs
- TypeSystemHelpers.cs
- ApplicationSecurityManager.cs
- KeyboardNavigation.cs
- ParameterBuilder.cs
- ResourceDefaultValueAttribute.cs
- SafeRegistryHandle.cs
- StreamingContext.cs
- EntityDataSourceDataSelectionPanel.cs
- ResourceLoader.cs
- QilGeneratorEnv.cs
- FileDialog_Vista.cs
- SmiTypedGetterSetter.cs
- CreateParams.cs
- DispatchOperationRuntime.cs
- StateRuntime.cs
- TemplatedMailWebEventProvider.cs
- DataBoundLiteralControl.cs
- SeekableReadStream.cs
- CLRBindingWorker.cs
- XhtmlBasicValidationSummaryAdapter.cs
- FileUtil.cs
- DataGridRow.cs
- CodeBlockBuilder.cs
- PackageRelationshipCollection.cs
- Clock.cs
- XPathScanner.cs
- FunctionImportElement.cs
- WebServiceClientProxyGenerator.cs
- XmlDocumentType.cs
- WorkflowItemPresenter.cs
- InvokePatternIdentifiers.cs
- ToolStripItemCollection.cs
- TogglePatternIdentifiers.cs
- UnescapedXmlDiagnosticData.cs
- CapacityStreamGeometryContext.cs
- XmlCustomFormatter.cs
- ExpressionBuilderCollection.cs
- PointConverter.cs
- ObjectViewEntityCollectionData.cs
- SessionPageStateSection.cs
- TriggerBase.cs
- XPathExpr.cs
- OdbcDataReader.cs
- ListViewDeleteEventArgs.cs
- ChineseLunisolarCalendar.cs
- Point3DAnimationUsingKeyFrames.cs
- XPathNodeIterator.cs
- Helper.cs
- SeekStoryboard.cs
- RightsManagementInformation.cs
- Visual3D.cs
- PasswordBox.cs
- WebPartCollection.cs
- DrawingContextFlattener.cs
- ModelFunctionTypeElement.cs
- HttpProfileBase.cs
- PlacementWorkspace.cs
- CodeAccessSecurityEngine.cs
- FormViewUpdateEventArgs.cs
- SqlRowUpdatingEvent.cs
- AsyncDataRequest.cs
- RegexGroupCollection.cs
- NavigateEvent.cs
- PackageDigitalSignatureManager.cs