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
- MediaScriptCommandRoutedEventArgs.cs
- KeyValueInternalCollection.cs
- LayoutTableCell.cs
- CodeExpressionStatement.cs
- ProfileInfo.cs
- CodeSnippetStatement.cs
- VisualStyleElement.cs
- Mappings.cs
- TraceContext.cs
- ScrollableControl.cs
- Vector3DCollectionConverter.cs
- PeerServiceMessageContracts.cs
- StringFormat.cs
- TextTreeTextElementNode.cs
- oledbmetadatacolumnnames.cs
- BoundPropertyEntry.cs
- ControlParameter.cs
- SoapFormatter.cs
- FixedHighlight.cs
- DbProviderFactory.cs
- HostVisual.cs
- NativeMethods.cs
- baseaxisquery.cs
- DrawToolTipEventArgs.cs
- Timer.cs
- SynchronousChannel.cs
- SpeechUI.cs
- CollectionViewGroupRoot.cs
- VectorCollectionValueSerializer.cs
- WebServiceParameterData.cs
- FileUtil.cs
- AsymmetricSignatureFormatter.cs
- EntityViewGenerationAttribute.cs
- GraphicsPath.cs
- DeobfuscatingStream.cs
- DataTransferEventArgs.cs
- FormatSettings.cs
- BitStream.cs
- TemplatePagerField.cs
- SqlFileStream.cs
- MouseActionValueSerializer.cs
- Track.cs
- BitmapEffectState.cs
- Clause.cs
- Quaternion.cs
- ContentDefinition.cs
- ScrollBarRenderer.cs
- XdrBuilder.cs
- Int64AnimationUsingKeyFrames.cs
- CollectionBuilder.cs
- SelfIssuedAuthRSACryptoProvider.cs
- GroupQuery.cs
- RowUpdatedEventArgs.cs
- HwndSource.cs
- UniformGrid.cs
- FilterQueryOptionExpression.cs
- StylusPointDescription.cs
- VarRemapper.cs
- GCHandleCookieTable.cs
- BitmapFrameDecode.cs
- SafeEventLogWriteHandle.cs
- HebrewNumber.cs
- XPathNodeHelper.cs
- BindingContext.cs
- XmlWrappingWriter.cs
- Decorator.cs
- ViewCellSlot.cs
- XmlJsonWriter.cs
- SpnegoTokenAuthenticator.cs
- FileVersion.cs
- TemplatedMailWebEventProvider.cs
- InkCanvasAutomationPeer.cs
- PointCollection.cs
- WizardPanelChangingEventArgs.cs
- DSGeneratorProblem.cs
- FormsAuthenticationConfiguration.cs
- PathParser.cs
- SqlFlattener.cs
- ManagedFilter.cs
- CodeLinePragma.cs
- WmlFormAdapter.cs
- XmlMapping.cs
- ApplicationBuildProvider.cs
- BasePattern.cs
- ProjectionPruner.cs
- Matrix.cs
- ToolbarAUtomationPeer.cs
- Config.cs
- XPathParser.cs
- CryptoApi.cs
- CheckBoxBaseAdapter.cs
- ContextMenuService.cs
- PageThemeParser.cs
- XsltCompileContext.cs
- ResourceDefaultValueAttribute.cs
- SubtreeProcessor.cs
- AuthenticationServiceManager.cs
- DeobfuscatingStream.cs
- Material.cs
- PKCS1MaskGenerationMethod.cs