Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 2 / CaseStatementSlot.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Mapping.ViewGeneration.CqlGeneration; using System.Text; using System.Collections.Generic; namespace System.Data.Mapping.ViewGeneration.Structures { // This class is just a wrapper over case statements so that we don't // pollute the CaseStatement class itself internal class CaseStatementSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementSlot(CaseStatement statement, IEnumerablewithStatements) { m_caseStatement = statement; m_withStatements = withStatements; } #endregion #region Fields private CaseStatement m_caseStatement; // The actual case statement private IEnumerable m_withStatements; #endregion #region Methods internal override ProjectedSlot MakeAliasedSlot(CqlBlock block, MemberPath outputPath, int slotNum) { CaseStatement newStatement = m_caseStatement.MakeCaseWithAliasedSlots(block, outputPath, slotNum); return new CaseStatementSlot(newStatement, null); } internal override StringBuilder AsCql(StringBuilder builder, MemberPath outputMember, string blockAlias, int indentLevel) { m_caseStatement.AsCql(builder, m_withStatements, blockAlias, indentLevel); return builder; } internal override void ToCompactString(StringBuilder builder) { m_caseStatement.ToCompactString(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; using System.Collections.Generic; namespace System.Data.Mapping.ViewGeneration.Structures { // This class is just a wrapper over case statements so that we don't // pollute the CaseStatement class itself internal class CaseStatementSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementSlot(CaseStatement statement, IEnumerablewithStatements) { m_caseStatement = statement; m_withStatements = withStatements; } #endregion #region Fields private CaseStatement m_caseStatement; // The actual case statement private IEnumerable m_withStatements; #endregion #region Methods internal override ProjectedSlot MakeAliasedSlot(CqlBlock block, MemberPath outputPath, int slotNum) { CaseStatement newStatement = m_caseStatement.MakeCaseWithAliasedSlots(block, outputPath, slotNum); return new CaseStatementSlot(newStatement, null); } internal override StringBuilder AsCql(StringBuilder builder, MemberPath outputMember, string blockAlias, int indentLevel) { m_caseStatement.AsCql(builder, m_withStatements, blockAlias, indentLevel); return builder; } internal override void ToCompactString(StringBuilder builder) { m_caseStatement.ToCompactString(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
- AttributeCollection.cs
- RuleProcessor.cs
- RSAOAEPKeyExchangeFormatter.cs
- PeerNameRecordCollection.cs
- RuleSettings.cs
- BooleanExpr.cs
- ConfigsHelper.cs
- PageAsyncTaskManager.cs
- FaultPropagationQuery.cs
- DbSetClause.cs
- METAHEADER.cs
- HttpSocketManager.cs
- XmlUrlEditor.cs
- SpecialNameAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- ExpressionLexer.cs
- DirectoryNotFoundException.cs
- oledbmetadatacolumnnames.cs
- PublishLicense.cs
- DataGridTableStyleMappingNameEditor.cs
- XmlSchemaProviderAttribute.cs
- DesignTimeParseData.cs
- BamlRecords.cs
- ConfigurationStrings.cs
- FileSystemInfo.cs
- MetafileHeaderWmf.cs
- AssemblySettingAttributes.cs
- PackagePartCollection.cs
- BuildProvider.cs
- CompensationParticipant.cs
- FieldDescriptor.cs
- BrowsableAttribute.cs
- BaseValidator.cs
- RequestUriProcessor.cs
- DbModificationCommandTree.cs
- StringCollection.cs
- XmlElementAttributes.cs
- TextTrailingWordEllipsis.cs
- TextBoxDesigner.cs
- AsymmetricKeyExchangeFormatter.cs
- ServiceTimeoutsBehavior.cs
- TextSerializer.cs
- MetadataArtifactLoaderCompositeResource.cs
- TextOutput.cs
- WizardStepBase.cs
- MeasurementDCInfo.cs
- Timer.cs
- JapaneseCalendar.cs
- StickyNoteHelper.cs
- FolderLevelBuildProviderCollection.cs
- EntityDataSourceColumn.cs
- ObjectDataSourceSelectingEventArgs.cs
- SqlDataReaderSmi.cs
- ObjectReferenceStack.cs
- DrawingCollection.cs
- ContentOperations.cs
- SingleAnimationBase.cs
- ReferenceEqualityComparer.cs
- Single.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- XhtmlConformanceSection.cs
- DispatcherExceptionFilterEventArgs.cs
- ControlCollection.cs
- ContentTypeSettingClientMessageFormatter.cs
- WebServiceHandler.cs
- IdentityHolder.cs
- DbCommandTree.cs
- Stroke.cs
- CalendarModeChangedEventArgs.cs
- RightsManagementEncryptedStream.cs
- XPSSignatureDefinition.cs
- WebPartZoneCollection.cs
- TranslateTransform3D.cs
- LongSumAggregationOperator.cs
- ThreadStartException.cs
- WriteTimeStream.cs
- QuaternionKeyFrameCollection.cs
- HostProtectionPermission.cs
- Table.cs
- AutomationPropertyInfo.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- BamlBinaryReader.cs
- WindowCollection.cs
- DrawingGroup.cs
- TextServicesDisplayAttribute.cs
- ServiceOperationParameter.cs
- BuildResultCache.cs
- CollectionConverter.cs
- ConstrainedGroup.cs
- DataGridCommandEventArgs.cs
- Sequence.cs
- TargetControlTypeCache.cs
- ExpressionsCollectionConverter.cs
- AlignmentXValidation.cs
- BuildResultCache.cs
- CacheAxisQuery.cs
- Registry.cs
- EdmConstants.cs
- DataBindingHandlerAttribute.cs
- CurrentChangedEventManager.cs