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
- ClientProtocol.cs
- ConstraintCollection.cs
- Keyboard.cs
- WebPartTracker.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- HasCopySemanticsAttribute.cs
- XmlBinaryReader.cs
- TemplateInstanceAttribute.cs
- FixedSOMPageElement.cs
- ButtonBase.cs
- WebPartUserCapability.cs
- Transform.cs
- GridViewColumnCollectionChangedEventArgs.cs
- MultiAsyncResult.cs
- Intellisense.cs
- XmlAttributeOverrides.cs
- ComplexTypeEmitter.cs
- Membership.cs
- ToolStripDropDownClosedEventArgs.cs
- DrawingContext.cs
- EntityDataSourceViewSchema.cs
- FlowDocumentScrollViewer.cs
- ParallelTimeline.cs
- MembershipValidatePasswordEventArgs.cs
- XsdDataContractImporter.cs
- ClientFormsAuthenticationCredentials.cs
- COM2IDispatchConverter.cs
- FontWeight.cs
- PartialArray.cs
- AnchorEditor.cs
- StaticResourceExtension.cs
- ObjectIDGenerator.cs
- HtmlPageAdapter.cs
- TextRangeSerialization.cs
- ToolStripDropDownClosedEventArgs.cs
- ConfigurationSectionGroupCollection.cs
- CatalogPartCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- RegexInterpreter.cs
- IEnumerable.cs
- PenContexts.cs
- UserMapPath.cs
- AnnotationObservableCollection.cs
- UnSafeCharBuffer.cs
- Property.cs
- BuilderInfo.cs
- OLEDB_Enum.cs
- UiaCoreTypesApi.cs
- GridView.cs
- DelegatingMessage.cs
- WindowsToolbarAsMenu.cs
- Int32RectConverter.cs
- NamespaceList.cs
- CommandDesigner.cs
- MouseGestureValueSerializer.cs
- MenuItemStyleCollection.cs
- SQLMoney.cs
- SubMenuStyle.cs
- SystemPens.cs
- HtmlTitle.cs
- CmsInterop.cs
- AuthenticationServiceManager.cs
- ResXResourceReader.cs
- ExeConfigurationFileMap.cs
- SimplePropertyEntry.cs
- HostingEnvironmentSection.cs
- Logging.cs
- LayoutTableCell.cs
- AttributeQuery.cs
- MetadataAssemblyHelper.cs
- WizardPanel.cs
- Signature.cs
- ApplicationTrust.cs
- ProgressiveCrcCalculatingStream.cs
- DataGridRowEventArgs.cs
- MessagePropertyVariants.cs
- UnsafeNativeMethods.cs
- XslVisitor.cs
- CancelEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- CompilerTypeWithParams.cs
- ModifierKeysValueSerializer.cs
- TracingConnectionListener.cs
- RequestQueryProcessor.cs
- OperandQuery.cs
- DataRowView.cs
- PointUtil.cs
- WebPartEditorCancelVerb.cs
- OleDbConnectionFactory.cs
- CultureTableRecord.cs
- ColumnResult.cs
- Cloud.cs
- Context.cs
- FixUp.cs
- EventItfInfo.cs
- DataExpression.cs
- OleDbInfoMessageEvent.cs
- TextServicesContext.cs
- EventMappingSettingsCollection.cs
- QilNode.cs