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
- EntityDataSourceQueryBuilder.cs
- PlaceHolder.cs
- DockPattern.cs
- TemplateContent.cs
- IntSecurity.cs
- SchemaElement.cs
- SchemaConstraints.cs
- RepeatButtonAutomationPeer.cs
- SmtpTransport.cs
- Timeline.cs
- OdbcError.cs
- HttpInputStream.cs
- ControlCollection.cs
- RewritingValidator.cs
- CommonGetThemePartSize.cs
- FileDialog.cs
- ObjectTag.cs
- SqlNodeAnnotations.cs
- DataGridViewCellValidatingEventArgs.cs
- FlowDocumentView.cs
- ChildChangedEventArgs.cs
- PersonalizationAdministration.cs
- HyperlinkAutomationPeer.cs
- TextTreeTextElementNode.cs
- SafeNativeMethods.cs
- Label.cs
- RadialGradientBrush.cs
- ISAPIApplicationHost.cs
- Compiler.cs
- GetLedgerRequest.cs
- MemoryStream.cs
- ActivityBuilder.cs
- SimpleFieldTemplateFactory.cs
- complextypematerializer.cs
- SettingsPropertyIsReadOnlyException.cs
- RepeaterItemEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- ConnectionConsumerAttribute.cs
- HttpHandlerAction.cs
- DateTimeFormatInfo.cs
- RuleDefinitions.cs
- DropShadowEffect.cs
- DropShadowEffect.cs
- WindowAutomationPeer.cs
- XmlSchemaInferenceException.cs
- MenuItem.cs
- HashAlgorithm.cs
- wmiprovider.cs
- NotImplementedException.cs
- ParagraphResult.cs
- BufferModesCollection.cs
- PointLightBase.cs
- TreeNodeCollection.cs
- WindowPatternIdentifiers.cs
- nulltextcontainer.cs
- IndexedWhereQueryOperator.cs
- SecurityException.cs
- DesignParameter.cs
- DBAsyncResult.cs
- CheckBox.cs
- DataGridViewControlCollection.cs
- AssemblyUtil.cs
- EventProxy.cs
- OleDbPermission.cs
- TimeSpanFormat.cs
- MemberCollection.cs
- SafePointer.cs
- PackagePart.cs
- QuestionEventArgs.cs
- DependencyPropertyChangedEventArgs.cs
- UnauthorizedWebPart.cs
- ImportOptions.cs
- ArraySegment.cs
- Blend.cs
- TableLayoutSettingsTypeConverter.cs
- SystemIPInterfaceStatistics.cs
- QueryCacheEntry.cs
- HMACSHA384.cs
- CodeMemberProperty.cs
- DataGridPagingPage.cs
- OutArgumentConverter.cs
- EndPoint.cs
- MouseWheelEventArgs.cs
- StylusButtonEventArgs.cs
- CodeSubDirectory.cs
- ApplicationId.cs
- Flowchart.cs
- Polyline.cs
- XmlMapping.cs
- ValidatingCollection.cs
- PageCodeDomTreeGenerator.cs
- ConnectionAcceptor.cs
- AnchorEditor.cs
- XmlLanguageConverter.cs
- OdbcEnvironment.cs
- MenuItemBindingCollection.cs
- DrawListViewItemEventArgs.cs
- Wizard.cs
- QuestionEventArgs.cs
- RSACryptoServiceProvider.cs