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
- VirtualPathUtility.cs
- FormViewPagerRow.cs
- ValidationErrorEventArgs.cs
- TimeSpanFormat.cs
- WebUtil.cs
- ExecutionContext.cs
- InstanceKeyCollisionException.cs
- SessionIDManager.cs
- ToolStripGripRenderEventArgs.cs
- DeleteMemberBinder.cs
- PartitionResolver.cs
- ServiceModelDictionary.cs
- MaskedTextProvider.cs
- PerformanceCounterPermission.cs
- ListCardsInFileRequest.cs
- BufferBuilder.cs
- oledbconnectionstring.cs
- ToolStripDropDown.cs
- CanonicalFontFamilyReference.cs
- SingleTagSectionHandler.cs
- EntityDataSourceQueryBuilder.cs
- MailBnfHelper.cs
- WebEncodingValidatorAttribute.cs
- ChangesetResponse.cs
- StylusCollection.cs
- UserControlBuildProvider.cs
- DataGridViewColumnCollection.cs
- BinaryNode.cs
- SafePointer.cs
- HttpApplicationFactory.cs
- DateTimeValueSerializerContext.cs
- GPRECT.cs
- oledbmetadatacolumnnames.cs
- ColorComboBox.cs
- TextChange.cs
- DbParameterCollection.cs
- MultilineStringConverter.cs
- OleCmdHelper.cs
- CatchDesigner.xaml.cs
- WebPartTracker.cs
- ObjectStateManager.cs
- QilPatternVisitor.cs
- GenericAuthenticationEventArgs.cs
- AppearanceEditorPart.cs
- DataGridState.cs
- RepeaterItem.cs
- ParallelActivityDesigner.cs
- Matrix3D.cs
- RewritingPass.cs
- NullableIntSumAggregationOperator.cs
- HtmlTable.cs
- TouchPoint.cs
- ICspAsymmetricAlgorithm.cs
- PropertyInformation.cs
- ISFTagAndGuidCache.cs
- SchemaSetCompiler.cs
- LocatorGroup.cs
- ZeroOpNode.cs
- QueryInterceptorAttribute.cs
- XmlSchemaAll.cs
- RelationshipEndMember.cs
- ExpressionBuilderCollection.cs
- Lock.cs
- Deserializer.cs
- ButtonBaseAdapter.cs
- WebPartVerb.cs
- NameObjectCollectionBase.cs
- HttpException.cs
- SoapAttributeAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- WorkflowRequestContext.cs
- CorrelationService.cs
- DNS.cs
- ContentFileHelper.cs
- PopupRootAutomationPeer.cs
- ResXFileRef.cs
- _LocalDataStore.cs
- ExceptionUtil.cs
- XmlWellformedWriterHelpers.cs
- MsmqInputChannelListenerBase.cs
- FunctionParameter.cs
- DataObject.cs
- ClickablePoint.cs
- HighlightVisual.cs
- RangeValidator.cs
- UnsafeNativeMethods.cs
- DataTransferEventArgs.cs
- CodeDirectionExpression.cs
- KeyValueConfigurationElement.cs
- WindowsTitleBar.cs
- VirtualizedContainerService.cs
- SchemaLookupTable.cs
- DataGridView.cs
- InputScopeNameConverter.cs
- DataGridViewDataConnection.cs
- __Filters.cs
- Misc.cs
- InputElement.cs
- TextTreeTextElementNode.cs
- DesignerView.Commands.cs