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
- ToolstripProfessionalRenderer.cs
- OleCmdHelper.cs
- TextServicesCompartmentContext.cs
- BitFlagsGenerator.cs
- DbConnectionStringBuilder.cs
- XmlSchemaDocumentation.cs
- KeyedCollection.cs
- RichTextBoxConstants.cs
- DataTableReader.cs
- FixedSOMPageConstructor.cs
- SecurityUtils.cs
- PeerInvitationResponse.cs
- BuildProvider.cs
- MonitoringDescriptionAttribute.cs
- DefaultBindingPropertyAttribute.cs
- ExtentCqlBlock.cs
- ListViewItem.cs
- SaveFileDialog.cs
- StorageEndPropertyMapping.cs
- MimeTypeMapper.cs
- XmlDocument.cs
- Control.cs
- RefreshPropertiesAttribute.cs
- TypeSemantics.cs
- NumberFunctions.cs
- SiteMembershipCondition.cs
- SchemaType.cs
- DataContract.cs
- X509SecurityToken.cs
- PrePrepareMethodAttribute.cs
- PriorityRange.cs
- DefaultValidator.cs
- Trace.cs
- SecurityTokenTypes.cs
- SmiContext.cs
- ComplexBindingPropertiesAttribute.cs
- IgnoreFileBuildProvider.cs
- SqlDeflator.cs
- TextDecorationCollection.cs
- CompressionTransform.cs
- XmlUtil.cs
- CompressedStack.cs
- TriggerAction.cs
- InputScope.cs
- SystemIcmpV6Statistics.cs
- InvocationExpression.cs
- COM2FontConverter.cs
- BoolExpr.cs
- Image.cs
- SafeViewOfFileHandle.cs
- CombinedTcpChannel.cs
- SchemaUtility.cs
- DataGridViewTopRowAccessibleObject.cs
- BaseParagraph.cs
- FocusChangedEventArgs.cs
- TranslateTransform3D.cs
- LambdaCompiler.Logical.cs
- CodeDomConfigurationHandler.cs
- QueryAccessibilityHelpEvent.cs
- LinqDataSourceContextEventArgs.cs
- Transform.cs
- RoleServiceManager.cs
- DbConnectionPoolGroup.cs
- WorkflowApplicationTerminatedException.cs
- ControlOperationBehavior.cs
- Formatter.cs
- ElementUtil.cs
- DataServiceKeyAttribute.cs
- ValidatedControlConverter.cs
- TTSEngineProxy.cs
- CryptoProvider.cs
- LicFileLicenseProvider.cs
- InfiniteTimeSpanConverter.cs
- SetStateDesigner.cs
- DataGridAutoFormat.cs
- UnauthorizedWebPart.cs
- FormsAuthenticationModule.cs
- PromptBuilder.cs
- Empty.cs
- ObsoleteAttribute.cs
- HttpAsyncResult.cs
- SafeRightsManagementEnvironmentHandle.cs
- ValidatingReaderNodeData.cs
- SelectionListComponentEditor.cs
- QilPatternFactory.cs
- PrintingPermissionAttribute.cs
- ExpressionBuilderCollection.cs
- RandomNumberGenerator.cs
- TemplateFactory.cs
- ListManagerBindingsCollection.cs
- MenuItemStyle.cs
- SafeCoTaskMem.cs
- AttachmentService.cs
- ManifestSignedXml.cs
- MaskedTextBoxDesigner.cs
- RectangleHotSpot.cs
- UInt16.cs
- AssemblyResourceLoader.cs
- SatelliteContractVersionAttribute.cs
- dbenumerator.cs