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
- NativeMethods.cs
- TrackingProfileCache.cs
- KeyConstraint.cs
- ArglessEventHandlerProxy.cs
- Content.cs
- ToolstripProfessionalRenderer.cs
- NavigationProperty.cs
- SafeCloseHandleCritical.cs
- elementinformation.cs
- InheritanceAttribute.cs
- precedingquery.cs
- HostUtils.cs
- Style.cs
- NavigationProperty.cs
- IisTraceWebEventProvider.cs
- EventSourceCreationData.cs
- MulticastNotSupportedException.cs
- TrackingProfileCache.cs
- MessageVersion.cs
- Decimal.cs
- ViewGenResults.cs
- __TransparentProxy.cs
- Menu.cs
- EmbossBitmapEffect.cs
- CertificateManager.cs
- PinnedBufferMemoryStream.cs
- SupportingTokenParameters.cs
- CalendarTable.cs
- ErrorInfoXmlDocument.cs
- ContentIterators.cs
- DPAPIProtectedConfigurationProvider.cs
- AssociationSetMetadata.cs
- StateBag.cs
- ActiveDocumentEvent.cs
- CapabilitiesUse.cs
- Matrix.cs
- SqlStatistics.cs
- CachingHintValidation.cs
- ToolStripItemCollection.cs
- TraceProvider.cs
- SolidColorBrush.cs
- SafeSecurityHandles.cs
- DataRowExtensions.cs
- DataServiceQueryProvider.cs
- WebPartDesigner.cs
- Literal.cs
- BuildProvider.cs
- TimeSpanOrInfiniteConverter.cs
- TreeView.cs
- FolderLevelBuildProvider.cs
- SpanIndex.cs
- RegularExpressionValidator.cs
- QueryContinueDragEventArgs.cs
- BitmapFrame.cs
- DrawingImage.cs
- ArgumentOutOfRangeException.cs
- Enum.cs
- AuthorizationSection.cs
- WhiteSpaceTrimStringConverter.cs
- RelationshipEnd.cs
- Region.cs
- RtfControlWordInfo.cs
- DataGridViewColumnTypeEditor.cs
- Perspective.cs
- ConfigurationStrings.cs
- VisualStyleRenderer.cs
- x509utils.cs
- ShaderEffect.cs
- ListControl.cs
- WebPartVerbsEventArgs.cs
- ListView.cs
- ReliabilityContractAttribute.cs
- ExpressionBinding.cs
- counter.cs
- InternalMappingException.cs
- SecurityManager.cs
- DataTransferEventArgs.cs
- DataRelation.cs
- DecoderNLS.cs
- Properties.cs
- SoundPlayer.cs
- MembershipPasswordException.cs
- DmlSqlGenerator.cs
- OrCondition.cs
- EnvelopedSignatureTransform.cs
- PngBitmapDecoder.cs
- SqlInfoMessageEvent.cs
- OleDbSchemaGuid.cs
- PreDigestedSignedInfo.cs
- ColorPalette.cs
- WmpBitmapEncoder.cs
- SamlAudienceRestrictionCondition.cs
- ThreadExceptionDialog.cs
- PresentationTraceSources.cs
- StringOutput.cs
- SimpleTextLine.cs
- MetadataPropertyAttribute.cs
- CompositeKey.cs
- IndentedWriter.cs
- XsltContext.cs