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
- VoiceChangeEventArgs.cs
- AssemblyUtil.cs
- Marshal.cs
- ActionFrame.cs
- elementinformation.cs
- Column.cs
- EdmFunctions.cs
- SessionStateContainer.cs
- ViewDesigner.cs
- InstanceCompleteException.cs
- _ListenerRequestStream.cs
- WebSysDefaultValueAttribute.cs
- ResXFileRef.cs
- HtmlLabelAdapter.cs
- VersionPair.cs
- StylusDownEventArgs.cs
- ClientSponsor.cs
- Column.cs
- documentsequencetextpointer.cs
- RangeContentEnumerator.cs
- ValuePatternIdentifiers.cs
- ConnectivityStatus.cs
- DataGridViewLinkColumn.cs
- HttpResponseHeader.cs
- TraceHandler.cs
- TimeIntervalCollection.cs
- GridView.cs
- AudioDeviceOut.cs
- CultureMapper.cs
- Trace.cs
- ProcessHostServerConfig.cs
- ApplicationManager.cs
- SerialPinChanges.cs
- precedingsibling.cs
- ReflectionTypeLoadException.cs
- DiscoveryReference.cs
- SqlGenerator.cs
- HttpProfileBase.cs
- FrameworkContentElement.cs
- ImmComposition.cs
- RealProxy.cs
- ValidationHelper.cs
- DirtyTextRange.cs
- ViewStateChangedEventArgs.cs
- Set.cs
- AdapterDictionary.cs
- Evidence.cs
- XmlElement.cs
- Cell.cs
- KeyEvent.cs
- ComponentEvent.cs
- DataObject.cs
- OleDbRowUpdatingEvent.cs
- ExpressionPrinter.cs
- CellQuery.cs
- CodeDirectoryCompiler.cs
- DataGridColumnHeader.cs
- DataListGeneralPage.cs
- KeyGestureValueSerializer.cs
- RuleConditionDialog.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- InternalSafeNativeMethods.cs
- _NetRes.cs
- ExpressionLexer.cs
- IteratorFilter.cs
- SetterBaseCollection.cs
- RegexEditorDialog.cs
- OAVariantLib.cs
- IPEndPoint.cs
- WebEventTraceProvider.cs
- WebPartConnectionsConnectVerb.cs
- ProcessingInstructionAction.cs
- PolicyStatement.cs
- InvalidDataException.cs
- DataGridViewRowsRemovedEventArgs.cs
- GridEntryCollection.cs
- ToolZone.cs
- Misc.cs
- Missing.cs
- StaticExtension.cs
- UnsafeNetInfoNativeMethods.cs
- VerificationException.cs
- ColorAnimation.cs
- RegexFCD.cs
- ProjectionRewriter.cs
- ApplicationServiceHelper.cs
- RepeaterItem.cs
- Point.cs
- TransformPattern.cs
- MatrixAnimationUsingPath.cs
- PenLineCapValidation.cs
- MetadataProperty.cs
- WorkflowInspectionServices.cs
- EntityCommandDefinition.cs
- EtwTrackingBehaviorElement.cs
- WebServiceResponse.cs
- VectorCollectionValueSerializer.cs
- ItemContainerPattern.cs
- ClientTarget.cs
- PathSegment.cs