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
- RequestContext.cs
- CheckBoxStandardAdapter.cs
- HtmlTableRowCollection.cs
- ArithmeticException.cs
- FontClient.cs
- LZCodec.cs
- PersonalizationStateQuery.cs
- __Error.cs
- ObjectDesignerDataSourceView.cs
- SingleAnimationBase.cs
- PropertyDescriptorGridEntry.cs
- TextPattern.cs
- CalendarDay.cs
- Base64Encoder.cs
- TargetParameterCountException.cs
- ExpressionBuilder.cs
- XmlLinkedNode.cs
- HandleRef.cs
- Paragraph.cs
- ContainerUIElement3D.cs
- ActiveDocumentEvent.cs
- Int32RectConverter.cs
- ItemPager.cs
- MailMessage.cs
- RoutedEventHandlerInfo.cs
- TextChange.cs
- DataColumnMappingCollection.cs
- DtdParser.cs
- PreDigestedSignedInfo.cs
- SchemaName.cs
- XmlSchemaComplexContent.cs
- Oci.cs
- AppSecurityManager.cs
- RecognizedPhrase.cs
- DispatchWrapper.cs
- SqlConnectionPoolProviderInfo.cs
- StringArrayConverter.cs
- wmiprovider.cs
- ScriptingAuthenticationServiceSection.cs
- RelatedCurrencyManager.cs
- StateMachineHistory.cs
- RoutedEventConverter.cs
- UnsafeCollabNativeMethods.cs
- DashStyles.cs
- TypeConstant.cs
- BuildProviderCollection.cs
- HtmlForm.cs
- RadioButtonPopupAdapter.cs
- ModelVisual3D.cs
- GeneralTransformGroup.cs
- CodeIdentifiers.cs
- SQLInt64.cs
- FormsAuthentication.cs
- RangeValidator.cs
- DodSequenceMerge.cs
- OutputBuffer.cs
- DataControlReferenceCollection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- MemberDomainMap.cs
- XmlSchemaAppInfo.cs
- KeyInfo.cs
- CompilerInfo.cs
- NumberSubstitution.cs
- RsaSecurityKey.cs
- DataBinder.cs
- EventDescriptor.cs
- BaseComponentEditor.cs
- _BufferOffsetSize.cs
- ExpressionConverter.cs
- SessionStateSection.cs
- ListSourceHelper.cs
- CollectionViewGroupInternal.cs
- UrlAuthorizationModule.cs
- RemotingSurrogateSelector.cs
- ReferenceSchema.cs
- OneOf.cs
- InvalidCardException.cs
- AudioLevelUpdatedEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- DataBoundControl.cs
- FrugalMap.cs
- WindowClosedEventArgs.cs
- DrawingState.cs
- Debugger.cs
- RichTextBox.cs
- GraphicsContext.cs
- DataGridViewSortCompareEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- TcpConnectionPoolSettingsElement.cs
- ProtocolsConfigurationEntry.cs
- versioninfo.cs
- CompilationUnit.cs
- CustomCategoryAttribute.cs
- StorageInfo.cs
- FlowDocumentView.cs
- ViewLoader.cs
- DropShadowBitmapEffect.cs
- DataServiceHost.cs
- CodeSubDirectory.cs
- SpinLock.cs