Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / QualifiedCellIdBoolean.cs / 1 / 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
- DataGridViewSelectedCellsAccessibleObject.cs
- DeviceContext.cs
- ColumnWidthChangingEvent.cs
- WebPartVerbCollection.cs
- SqlGenericUtil.cs
- CompiledRegexRunner.cs
- PassportAuthentication.cs
- XmlResolver.cs
- CustomError.cs
- SemanticKeyElement.cs
- SerializationAttributes.cs
- BeginGetFileNameFromUserRequest.cs
- SupportingTokenSpecification.cs
- Parser.cs
- List.cs
- InkCanvasSelectionAdorner.cs
- WebPartManager.cs
- InertiaTranslationBehavior.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TraceRecords.cs
- ExpressionNode.cs
- ExtensionDataReader.cs
- OracleConnection.cs
- SlotInfo.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ObfuscateAssemblyAttribute.cs
- PackWebRequestFactory.cs
- VectorCollection.cs
- OleDbConnection.cs
- RoutedEventConverter.cs
- PropertyExpression.cs
- WebPartAuthorizationEventArgs.cs
- DataGridColumnEventArgs.cs
- DiagnosticTraceRecords.cs
- SrgsSubset.cs
- XPathDocumentNavigator.cs
- StorageConditionPropertyMapping.cs
- SendKeys.cs
- DescendantOverDescendantQuery.cs
- TrustSection.cs
- TemplateXamlParser.cs
- QilExpression.cs
- DecoderExceptionFallback.cs
- BitmapDecoder.cs
- ServicesUtilities.cs
- SrgsNameValueTag.cs
- UriTemplateTableMatchCandidate.cs
- FontWeights.cs
- AvTraceDetails.cs
- NamedPipeAppDomainProtocolHandler.cs
- InputLanguageSource.cs
- FileSecurity.cs
- WpfWebRequestHelper.cs
- ScaleTransform3D.cs
- RootBuilder.cs
- DefaultIfEmptyQueryOperator.cs
- TcpClientSocketManager.cs
- ConfigurationSchemaErrors.cs
- ExcCanonicalXml.cs
- UseLicense.cs
- RuntimeHandles.cs
- AutoResetEvent.cs
- VerificationException.cs
- TargetControlTypeAttribute.cs
- StreamGeometry.cs
- Attribute.cs
- ObjectParameter.cs
- FileUpload.cs
- TrackingCondition.cs
- securitycriticaldataformultiplegetandset.cs
- WebPartVerbCollection.cs
- NumericExpr.cs
- ThrowHelper.cs
- EdmRelationshipRoleAttribute.cs
- Types.cs
- _ProxyChain.cs
- Common.cs
- DateTimeFormatInfoScanner.cs
- InternalEnumValidator.cs
- TypeDescriptionProvider.cs
- TaiwanLunisolarCalendar.cs
- ImportContext.cs
- XmlAnyElementAttributes.cs
- Size3DValueSerializer.cs
- GlyphingCache.cs
- Container.cs
- XmlSerializer.cs
- ClientSettingsProvider.cs
- CalendarAutoFormat.cs
- TextContainerChangeEventArgs.cs
- StylusCaptureWithinProperty.cs
- RelatedPropertyManager.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ElementsClipboardData.cs
- grammarelement.cs
- SqlNamer.cs
- SqlConnectionStringBuilder.cs
- DelegateTypeInfo.cs
- ClientSettingsStore.cs
- GridViewDeleteEventArgs.cs