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
- Geometry3D.cs
- CommonGetThemePartSize.cs
- Crypto.cs
- processwaithandle.cs
- EncryptedData.cs
- SqlCommandSet.cs
- dtdvalidator.cs
- LogSwitch.cs
- DataColumnMappingCollection.cs
- CodeMemberProperty.cs
- EventSinkHelperWriter.cs
- Stylesheet.cs
- PropertyBuilder.cs
- Selector.cs
- FastPropertyAccessor.cs
- ProfileEventArgs.cs
- PocoPropertyAccessorStrategy.cs
- selecteditemcollection.cs
- DBConnectionString.cs
- AuthenticationService.cs
- _NativeSSPI.cs
- ReadOnlyCollection.cs
- DocumentGrid.cs
- GeometryGroup.cs
- CodeMemberProperty.cs
- MLangCodePageEncoding.cs
- HijriCalendar.cs
- CounterSampleCalculator.cs
- WebPartConnectionsCancelVerb.cs
- SqlUdtInfo.cs
- Convert.cs
- MessageDescriptionCollection.cs
- CollectionContainer.cs
- SafeEventLogWriteHandle.cs
- SignedXml.cs
- WmlSelectionListAdapter.cs
- SecurityKeyUsage.cs
- StandardToolWindows.cs
- UriTemplateCompoundPathSegment.cs
- TrackingAnnotationCollection.cs
- CodeExporter.cs
- WindowsSpinner.cs
- WebPartManagerInternals.cs
- WebControlParameterProxy.cs
- MemoryFailPoint.cs
- HtmlInputButton.cs
- GroupBoxRenderer.cs
- ListViewItem.cs
- DataBindingList.cs
- ItemDragEvent.cs
- ContractReference.cs
- IntSecurity.cs
- StyleXamlParser.cs
- OracleNumber.cs
- ClonableStack.cs
- WindowsGraphicsWrapper.cs
- HttpTransportSecurityElement.cs
- XmlElementAttribute.cs
- LoginDesignerUtil.cs
- SrgsItemList.cs
- ActivationServices.cs
- UnsafeNativeMethods.cs
- PinnedBufferMemoryStream.cs
- AsyncStreamReader.cs
- DbProviderFactories.cs
- InlineObject.cs
- NumberFormatInfo.cs
- ListViewPagedDataSource.cs
- ViewBox.cs
- ListViewSortEventArgs.cs
- CheckPair.cs
- Array.cs
- ToolTipAutomationPeer.cs
- ButtonBaseAdapter.cs
- StylusCaptureWithinProperty.cs
- Events.cs
- StateFinalizationActivity.cs
- LassoHelper.cs
- KeyedCollection.cs
- StateBag.cs
- BufferedOutputStream.cs
- DataContractSerializer.cs
- RuleConditionDialog.cs
- EncryptedKeyHashIdentifierClause.cs
- Attachment.cs
- SplitContainer.cs
- MappingMetadataHelper.cs
- _CacheStreams.cs
- autovalidator.cs
- UnmanagedMarshal.cs
- SQLUtility.cs
- StringReader.cs
- SiteMapPath.cs
- TcpSocketManager.cs
- StrokeCollectionDefaultValueFactory.cs
- Base64Stream.cs
- LookupBindingPropertiesAttribute.cs
- FontWeights.cs
- DataGridViewLinkCell.cs
- ProvidersHelper.cs