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
- HotSpotCollection.cs
- CompilerScopeManager.cs
- ObjectIDGenerator.cs
- XmlSequenceWriter.cs
- EntityProxyFactory.cs
- Normalizer.cs
- DataSourceView.cs
- XmlILOptimizerVisitor.cs
- QueryContinueDragEvent.cs
- XamlFilter.cs
- SafeThemeHandle.cs
- Currency.cs
- AQNBuilder.cs
- PhoneCallDesigner.cs
- TextBox.cs
- TrackingMemoryStreamFactory.cs
- SizeF.cs
- AxDesigner.cs
- WeakEventTable.cs
- ServicePointManager.cs
- HostingPreferredMapPath.cs
- ReliableChannelFactory.cs
- ComponentSerializationService.cs
- Convert.cs
- PropertyGridCommands.cs
- TimeSpanMinutesConverter.cs
- ExpressionPrefixAttribute.cs
- DrawingContextDrawingContextWalker.cs
- LayoutTable.cs
- mansign.cs
- BindingValueChangedEventArgs.cs
- CriticalHandle.cs
- XmlValidatingReader.cs
- Point3DAnimationBase.cs
- XPathScanner.cs
- InternalConfirm.cs
- BufferedWebEventProvider.cs
- Image.cs
- CollectionBuilder.cs
- Message.cs
- MessageSmuggler.cs
- PropertyInfoSet.cs
- IsolatedStorageException.cs
- WebPartDisplayMode.cs
- HitTestResult.cs
- ScrollContentPresenter.cs
- HtmlInputImage.cs
- InheritablePropertyChangeInfo.cs
- PropertyInformation.cs
- ListViewItemEventArgs.cs
- QueryTask.cs
- KeyConstraint.cs
- ObjectPersistData.cs
- SmtpException.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- followingsibling.cs
- UrlPath.cs
- SizeConverter.cs
- ApplicationProxyInternal.cs
- ServiceElementCollection.cs
- InvariantComparer.cs
- GridLengthConverter.cs
- RelationalExpressions.cs
- SqlCacheDependencyDatabase.cs
- IdentifierService.cs
- BCryptHashAlgorithm.cs
- OleDbMetaDataFactory.cs
- Part.cs
- WeakReferenceList.cs
- ProjectionPathSegment.cs
- PagesChangedEventArgs.cs
- WebPartDescriptionCollection.cs
- DataGridViewCellLinkedList.cs
- MetadataArtifactLoaderResource.cs
- TrackPoint.cs
- ClockGroup.cs
- DetailsViewInsertEventArgs.cs
- NameObjectCollectionBase.cs
- CookielessHelper.cs
- DefaultBinder.cs
- OptionalMessageQuery.cs
- XsdDateTime.cs
- CompilerScope.Storage.cs
- RemotingConfigParser.cs
- Random.cs
- SafeFileMapViewHandle.cs
- FastEncoder.cs
- SessionStateUtil.cs
- ScriptManager.cs
- GridErrorDlg.cs
- WebPartManagerInternals.cs
- DefaultShape.cs
- WebPartConnectionCollection.cs
- CheckBoxRenderer.cs
- Splitter.cs
- HMACMD5.cs
- Wizard.cs
- ViewEvent.cs
- EpmSourcePathSegment.cs
- CompiledQueryCacheKey.cs