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
- SourceItem.cs
- _SslSessionsCache.cs
- DbException.cs
- LayoutSettings.cs
- NameValueConfigurationCollection.cs
- FontUnitConverter.cs
- Predicate.cs
- WebPartDisplayModeEventArgs.cs
- XmlNamespaceManager.cs
- PropertyEntry.cs
- DirectionalLight.cs
- AesManaged.cs
- FileUtil.cs
- LinqTreeNodeEvaluator.cs
- ListViewUpdatedEventArgs.cs
- RegistryHandle.cs
- PointCollectionConverter.cs
- ECDiffieHellman.cs
- EventHandlerList.cs
- ListViewGroupItemCollection.cs
- UnsafeNativeMethodsPenimc.cs
- ObjectCloneHelper.cs
- SystemResourceKey.cs
- UiaCoreApi.cs
- InfoCardHelper.cs
- X509Certificate2Collection.cs
- AppDomainShutdownMonitor.cs
- RecordConverter.cs
- PropertyInformation.cs
- InspectionWorker.cs
- ToReply.cs
- FullTextState.cs
- Point4D.cs
- SoapIncludeAttribute.cs
- __Error.cs
- ApplicationDirectoryMembershipCondition.cs
- SelectionProcessor.cs
- AppDomainResourcePerfCounters.cs
- PropertyGeneratedEventArgs.cs
- JpegBitmapDecoder.cs
- XmlWellformedWriter.cs
- Suspend.cs
- DbParameterHelper.cs
- StreamInfo.cs
- RuleSetDialog.cs
- TextRange.cs
- DefaultValueAttribute.cs
- XmlNullResolver.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- TreeViewDesigner.cs
- BuiltInExpr.cs
- CreateUserWizardStep.cs
- WebResourceAttribute.cs
- DataGridCell.cs
- Selection.cs
- Timer.cs
- MimeXmlReflector.cs
- CompositeTypefaceMetrics.cs
- NameValuePermission.cs
- ListViewItem.cs
- ScrollEvent.cs
- BaseCollection.cs
- CollectionViewGroup.cs
- FixedSchema.cs
- COM2FontConverter.cs
- ConnectionOrientedTransportChannelFactory.cs
- PtsCache.cs
- CollectionViewGroup.cs
- TextElementCollectionHelper.cs
- VisualStateChangedEventArgs.cs
- URLMembershipCondition.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- RotationValidation.cs
- BaseValidator.cs
- ValidationResult.cs
- CharEnumerator.cs
- SiteOfOriginPart.cs
- RowCache.cs
- CompilerParameters.cs
- ContentFileHelper.cs
- Vector3DCollectionConverter.cs
- SelectionUIService.cs
- OutKeywords.cs
- FontFamily.cs
- SchemaElementDecl.cs
- FontSourceCollection.cs
- DateBoldEvent.cs
- UTF8Encoding.cs
- COM2PropertyDescriptor.cs
- SchemaElementLookUpTableEnumerator.cs
- TextRangeProviderWrapper.cs
- StylusPointPropertyInfo.cs
- WeakReferenceEnumerator.cs
- SimpleApplicationHost.cs
- PKCS1MaskGenerationMethod.cs
- Vector3DCollection.cs
- SafeCoTaskMem.cs
- MultilineStringConverter.cs
- MimeMapping.cs
- DragDropHelper.cs