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
- LogicalMethodInfo.cs
- UpdateEventArgs.cs
- FileAuthorizationModule.cs
- TCPClient.cs
- RoleBoolean.cs
- FigureHelper.cs
- PassportPrincipal.cs
- Image.cs
- AnonymousIdentificationSection.cs
- ValueOfAction.cs
- IdnElement.cs
- OnOperation.cs
- ProcessProtocolHandler.cs
- DataGridViewDataErrorEventArgs.cs
- WindowVisualStateTracker.cs
- RawStylusInput.cs
- StylusDownEventArgs.cs
- CatalogPartCollection.cs
- DynamicMetaObject.cs
- ConfigXmlText.cs
- ListSourceHelper.cs
- ClientFormsIdentity.cs
- StylusShape.cs
- TextElementCollection.cs
- RIPEMD160Managed.cs
- RequestCacheManager.cs
- Logging.cs
- XmlSchemaAppInfo.cs
- StopStoryboard.cs
- SymbolType.cs
- PrivilegeNotHeldException.cs
- XmlnsCompatibleWithAttribute.cs
- ProxyManager.cs
- MemberDescriptor.cs
- TextProviderWrapper.cs
- AvTrace.cs
- EmbeddedObject.cs
- DPCustomTypeDescriptor.cs
- XhtmlBasicTextViewAdapter.cs
- SQLDouble.cs
- XmlSignificantWhitespace.cs
- DataPagerFieldItem.cs
- ScriptResourceAttribute.cs
- CoreSwitches.cs
- ElementsClipboardData.cs
- PersistenceTypeAttribute.cs
- TypeKeyValue.cs
- GatewayDefinition.cs
- CheckBoxDesigner.cs
- RbTree.cs
- GradientSpreadMethodValidation.cs
- PrePostDescendentsWalker.cs
- NotifyIcon.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlHierarchicalEnumerable.cs
- XmlSchemaComplexContentRestriction.cs
- CompositeDataBoundControl.cs
- DataRowChangeEvent.cs
- TypedAsyncResult.cs
- Wildcard.cs
- PackUriHelper.cs
- CompoundFileIOPermission.cs
- AssemblyBuilder.cs
- DrawingGroupDrawingContext.cs
- StylesEditorDialog.cs
- DataGridViewRowsRemovedEventArgs.cs
- TableRowGroup.cs
- QilInvoke.cs
- EntityCommandDefinition.cs
- BindingOperations.cs
- backend.cs
- Border.cs
- UDPClient.cs
- DiscoveryRequestHandler.cs
- ZipIOCentralDirectoryFileHeader.cs
- TabControlCancelEvent.cs
- TextParentUndoUnit.cs
- ReferentialConstraint.cs
- CodeBlockBuilder.cs
- SignedXml.cs
- PathGradientBrush.cs
- NavigationCommands.cs
- RuntimeWrappedException.cs
- ComponentCache.cs
- TextClipboardData.cs
- TextClipboardData.cs
- ControlPropertyNameConverter.cs
- HttpListenerException.cs
- KeyManager.cs
- ContentPresenter.cs
- HtmlWindowCollection.cs
- TimerElapsedEvenArgs.cs
- ByteStack.cs
- Int16Storage.cs
- CallbackValidatorAttribute.cs
- MonthCalendarDesigner.cs
- ExpressionNormalizer.cs
- StylusPointPropertyUnit.cs
- NetworkCredential.cs
- DesignerActionKeyboardBehavior.cs