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
- StringDictionary.cs
- DynamicMethod.cs
- SiteMapNodeItem.cs
- Expression.DebuggerProxy.cs
- _AutoWebProxyScriptWrapper.cs
- MulticastNotSupportedException.cs
- DataGridTablesFactory.cs
- SerializationAttributes.cs
- BitmapDecoder.cs
- FormattedTextSymbols.cs
- TemplateKey.cs
- UniqueID.cs
- Identity.cs
- BrowserCapabilitiesCodeGenerator.cs
- PrePrepareMethodAttribute.cs
- PolicyValidationException.cs
- DbModificationCommandTree.cs
- ToolZone.cs
- XmlQueryContext.cs
- SplitterDesigner.cs
- TextParagraphProperties.cs
- SettingsAttributes.cs
- CodeTypeOfExpression.cs
- RefreshResponseInfo.cs
- ReversePositionQuery.cs
- Pair.cs
- PageStatePersister.cs
- DecimalConverter.cs
- EntityDataSourceUtil.cs
- EntityContainerRelationshipSet.cs
- NameValueCollection.cs
- ThreadPool.cs
- DbMetaDataCollectionNames.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- PerformanceCounterPermissionAttribute.cs
- SubqueryTrackingVisitor.cs
- SynchronousReceiveBehavior.cs
- OleDbConnectionInternal.cs
- ChannelServices.cs
- AssemblyCollection.cs
- HybridCollection.cs
- TakeQueryOptionExpression.cs
- FullTextLine.cs
- _OverlappedAsyncResult.cs
- SourceFileInfo.cs
- Transform3DGroup.cs
- FontDifferentiator.cs
- XmlnsCache.cs
- SpanIndex.cs
- SrgsElement.cs
- AttributeEmitter.cs
- Component.cs
- smtppermission.cs
- KeyEvent.cs
- LingerOption.cs
- XmlMembersMapping.cs
- HyperLinkField.cs
- SystemSounds.cs
- DecoderReplacementFallback.cs
- BrowserCapabilitiesFactory.cs
- UnhandledExceptionEventArgs.cs
- GradientBrush.cs
- List.cs
- CustomAttributeFormatException.cs
- MetadataProperty.cs
- TraceEventCache.cs
- Attributes.cs
- VisualBrush.cs
- CommonProperties.cs
- ToolboxService.cs
- SourceLineInfo.cs
- WebExceptionStatus.cs
- ProcessModuleCollection.cs
- XmlLanguageConverter.cs
- DiscoveryViaBehavior.cs
- LambdaCompiler.Address.cs
- TrustSection.cs
- TextEncodedRawTextWriter.cs
- ResourceKey.cs
- XmlILConstructAnalyzer.cs
- WebPartMinimizeVerb.cs
- XmlImplementation.cs
- HtmlHead.cs
- PointAnimationBase.cs
- SingleKeyFrameCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- ProcessHostFactoryHelper.cs
- CalendarDataBindingHandler.cs
- CollectionBase.cs
- MenuEventArgs.cs
- Crc32Helper.cs
- HandlerBase.cs
- UITypeEditor.cs
- ColumnHeader.cs
- WsatAdminException.cs
- ListenerSingletonConnectionReader.cs
- DataSourceCache.cs
- PagedDataSource.cs
- SystemColorTracker.cs
- Literal.cs