Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / QualifiedCellIdBoolean.cs / 1305376 / QualifiedCellIdBoolean.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Mapping.ViewGeneration.CqlGeneration; using System.Text; namespace System.Data.Mapping.ViewGeneration.Structures { // A class that denotes "T.booleanVar", e.g., "T1._from2" // It is a subclass of CellIdBoolean with an added block alias internal class QualifiedCellIdBoolean : CellIdBoolean { #region Constructor // effects: Creates a boolean of the form "block._from" internal QualifiedCellIdBoolean(CqlBlock block, CqlIdentifiers identifiers, int originalCellNum) : base(identifiers, originalCellNum) { m_block = block; } #endregion #region Fields private CqlBlock m_block; #endregion #region Methods internal override StringBuilder AsCql(StringBuilder builder, string blockAlias, bool canSkipIsNotNull) { // We ignore the given blockAlias since we already have a fully qualified name string qualifiedName = CqlWriter.GetQualifiedName(m_block.CqlAlias, SlotName); builder.Append(qualifiedName); return builder; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Mapping.ViewGeneration.CqlGeneration; using System.Text; namespace System.Data.Mapping.ViewGeneration.Structures { // A class that denotes "T.booleanVar", e.g., "T1._from2" // It is a subclass of CellIdBoolean with an added block alias internal class QualifiedCellIdBoolean : CellIdBoolean { #region Constructor // effects: Creates a boolean of the form "block._from" internal QualifiedCellIdBoolean(CqlBlock block, CqlIdentifiers identifiers, int originalCellNum) : base(identifiers, originalCellNum) { m_block = block; } #endregion #region Fields private CqlBlock m_block; #endregion #region Methods internal override StringBuilder AsCql(StringBuilder builder, string blockAlias, bool canSkipIsNotNull) { // We ignore the given blockAlias since we already have a fully qualified name string qualifiedName = CqlWriter.GetQualifiedName(m_block.CqlAlias, SlotName); builder.Append(qualifiedName); 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
- CheckBoxList.cs
- RightsManagementPermission.cs
- FunctionCommandText.cs
- SynchronizedPool.cs
- UnicodeEncoding.cs
- FormViewRow.cs
- UpdateCommand.cs
- SettingsContext.cs
- AssemblyBuilderData.cs
- RuntimeEnvironment.cs
- SqlDeflator.cs
- XmlEnumAttribute.cs
- MSAAEventDispatcher.cs
- QueryConverter.cs
- QilBinary.cs
- SystemIPv6InterfaceProperties.cs
- SqlDataSourceParameterParser.cs
- X509Chain.cs
- ChildDocumentBlock.cs
- PropertyPathConverter.cs
- NameValueCollection.cs
- DigestComparer.cs
- NativeMethods.cs
- FixedPageProcessor.cs
- CompositeCollectionView.cs
- BitmapEffectInputData.cs
- ItemDragEvent.cs
- TextPenaltyModule.cs
- DataGridViewTextBoxColumn.cs
- ContentValidator.cs
- TimeIntervalCollection.cs
- InstanceValue.cs
- DocumentPaginator.cs
- PeerChannelFactory.cs
- HttpRawResponse.cs
- XmlReflectionMember.cs
- FormViewUpdateEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- TextShapeableCharacters.cs
- XmlAutoDetectWriter.cs
- MinMaxParagraphWidth.cs
- ToolBarOverflowPanel.cs
- ServiceParser.cs
- BasicViewGenerator.cs
- ProbeMatchesApril2005.cs
- OdbcEnvironment.cs
- ValidateNames.cs
- AtomContentProperty.cs
- Stacktrace.cs
- DataBindingExpressionBuilder.cs
- Rotation3D.cs
- RuleSet.cs
- TypeTypeConverter.cs
- LogicalExpr.cs
- RefExpr.cs
- PrePrepareMethodAttribute.cs
- SoundPlayerAction.cs
- MimeBasePart.cs
- TextViewSelectionProcessor.cs
- WebPartEditorOkVerb.cs
- DelayedRegex.cs
- WizardSideBarListControlItemEventArgs.cs
- BmpBitmapEncoder.cs
- MemoryMappedFile.cs
- Registration.cs
- SocketStream.cs
- LoopExpression.cs
- SimpleLine.cs
- XPathNavigatorReader.cs
- TdsEnums.cs
- OLEDB_Enum.cs
- TokenFactoryFactory.cs
- DataObjectCopyingEventArgs.cs
- AttachedAnnotationChangedEventArgs.cs
- FilterUserControlBase.cs
- StylusButtonCollection.cs
- NativeMethods.cs
- FormattedTextSymbols.cs
- OdbcEnvironment.cs
- InputProcessorProfiles.cs
- ping.cs
- OperationContractAttribute.cs
- ExpressionsCollectionConverter.cs
- WeakHashtable.cs
- COM2EnumConverter.cs
- FigureHelper.cs
- DbUpdateCommandTree.cs
- RegexCompilationInfo.cs
- ClientScriptManager.cs
- SessionSwitchEventArgs.cs
- MimeAnyImporter.cs
- ActiveXContainer.cs
- DataSourceCache.cs
- WindowsSpinner.cs
- KnownBoxes.cs
- WindowsToolbar.cs
- WebServiceEnumData.cs
- IISMapPath.cs
- ResolvedKeyFrameEntry.cs
- IgnoreSectionHandler.cs