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
- HotSpotCollectionEditor.cs
- TextAdaptor.cs
- TrackBarDesigner.cs
- RoleService.cs
- COAUTHINFO.cs
- PartialCachingControl.cs
- PartialCachingControl.cs
- CodeSnippetExpression.cs
- GeometryModel3D.cs
- ChangeNode.cs
- RightsManagementInformation.cs
- IdentityReference.cs
- EmissiveMaterial.cs
- DocComment.cs
- FileDialog.cs
- ClientRolePrincipal.cs
- SqlWebEventProvider.cs
- BitSet.cs
- ActivityValidationServices.cs
- AdvancedBindingEditor.cs
- ContextCorrelationInitializer.cs
- ListViewInsertEventArgs.cs
- BitmapEffectDrawing.cs
- HostingEnvironmentSection.cs
- ValidationErrorCollection.cs
- WSHttpBinding.cs
- ipaddressinformationcollection.cs
- _AutoWebProxyScriptHelper.cs
- EmptyCollection.cs
- OperatorExpressions.cs
- Attributes.cs
- InfoCardService.cs
- ComPersistableTypeElementCollection.cs
- Int32Collection.cs
- GetPageCompletedEventArgs.cs
- EtwTrackingBehavior.cs
- IndicFontClient.cs
- SoapWriter.cs
- EventDescriptor.cs
- GeometryValueSerializer.cs
- ControlEvent.cs
- DesignerActionItemCollection.cs
- EventHandlerList.cs
- PointConverter.cs
- QilUnary.cs
- TraceSource.cs
- GetLedgerEntryForRecipientRequest.cs
- StandardToolWindows.cs
- DigestComparer.cs
- DesignOnlyAttribute.cs
- DispatcherHookEventArgs.cs
- ColumnResizeUndoUnit.cs
- RemotingHelper.cs
- SamlDelegatingWriter.cs
- InvalidOleVariantTypeException.cs
- FieldTemplateUserControl.cs
- reliableinputsessionchannel.cs
- DisableDpiAwarenessAttribute.cs
- DataGridPageChangedEventArgs.cs
- InternalBufferOverflowException.cs
- BooleanSwitch.cs
- PointAnimationClockResource.cs
- Preprocessor.cs
- XmlSchemaExternal.cs
- FormatterServices.cs
- SiteMapDataSource.cs
- TextTreeInsertElementUndoUnit.cs
- GPPOINT.cs
- TcpProcessProtocolHandler.cs
- XmlKeywords.cs
- XmlUrlResolver.cs
- StorageComplexPropertyMapping.cs
- CodeNamespaceImport.cs
- NamespaceDecl.cs
- ImageDrawing.cs
- Attachment.cs
- StringExpressionSet.cs
- SmiGettersStream.cs
- NotifyIcon.cs
- IPPacketInformation.cs
- InstanceContext.cs
- Directory.cs
- PerfCounters.cs
- QueryResponse.cs
- UniqueConstraint.cs
- ConstraintManager.cs
- Lease.cs
- SelfSignedCertificate.cs
- DataGridTextBox.cs
- MemoryFailPoint.cs
- XamlTemplateSerializer.cs
- RouteItem.cs
- Size3D.cs
- ZipIOCentralDirectoryBlock.cs
- UITypeEditor.cs
- SwitchElementsCollection.cs
- MethodBuilder.cs
- GenerateTemporaryTargetAssembly.cs
- WindowPattern.cs
- XmlSerializer.cs