Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementProjectedSlot.cs / 1305376 / CaseStatementProjectedSlot.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 CaseStatementProjectedSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementProjectedSlot(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 CaseStatementProjectedSlot(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 CaseStatementProjectedSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementProjectedSlot(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 CaseStatementProjectedSlot(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
- HostedNamedPipeTransportManager.cs
- NamespaceList.cs
- TypeDelegator.cs
- RenderDataDrawingContext.cs
- ExpressionWriter.cs
- Utils.cs
- ListViewDeleteEventArgs.cs
- AnimationStorage.cs
- ContentPlaceHolder.cs
- CodeNamespaceCollection.cs
- DtcInterfaces.cs
- DictionaryTraceRecord.cs
- AuthenticationConfig.cs
- Cursor.cs
- IISUnsafeMethods.cs
- CmsInterop.cs
- HiddenFieldPageStatePersister.cs
- StatusBarPanelClickEvent.cs
- RIPEMD160Managed.cs
- ExtensionSimplifierMarkupObject.cs
- MetadataExchangeClient.cs
- AssociationSet.cs
- BrushValueSerializer.cs
- Material.cs
- SqlConnectionHelper.cs
- RectKeyFrameCollection.cs
- StreamWriter.cs
- ChtmlMobileTextWriter.cs
- HtmlUtf8RawTextWriter.cs
- ProviderBase.cs
- MetadataArtifactLoaderFile.cs
- WindowsSolidBrush.cs
- RoutedEventValueSerializer.cs
- EventMappingSettings.cs
- Inline.cs
- SemanticResultKey.cs
- ApplicationTrust.cs
- Walker.cs
- EditorZoneBase.cs
- CharAnimationBase.cs
- XmlSerializationGeneratedCode.cs
- AnonymousIdentificationModule.cs
- Vector3DIndependentAnimationStorage.cs
- EncodingDataItem.cs
- PerformanceCounter.cs
- CompiledQuery.cs
- SkipQueryOptionExpression.cs
- OdbcException.cs
- CorrelationKeyCalculator.cs
- BaseUriHelper.cs
- NumberSubstitution.cs
- ThreadStaticAttribute.cs
- __ComObject.cs
- Rectangle.cs
- Int64Animation.cs
- MarkupExtensionParser.cs
- BoolExpressionVisitors.cs
- errorpatternmatcher.cs
- InvalidFilterCriteriaException.cs
- xml.cs
- HostedTransportConfigurationBase.cs
- WorkflowViewService.cs
- NativeMethods.cs
- XmlNavigatorStack.cs
- SelectedCellsCollection.cs
- LinqDataView.cs
- GiveFeedbackEventArgs.cs
- DrawingBrush.cs
- CommandValueSerializer.cs
- SizeF.cs
- DrawingContextDrawingContextWalker.cs
- PlanCompilerUtil.cs
- XmlArrayAttribute.cs
- CodeComment.cs
- ListViewDeleteEventArgs.cs
- VisualBasicReference.cs
- TypeUtils.cs
- UnmanagedMemoryStream.cs
- Hash.cs
- UrlAuthFailedErrorFormatter.cs
- DisplayInformation.cs
- DataTableExtensions.cs
- DependencyObject.cs
- TabControl.cs
- MediaTimeline.cs
- MetadataPropertyAttribute.cs
- TCEAdapterGenerator.cs
- WebPartDisplayModeCancelEventArgs.cs
- ButtonAutomationPeer.cs
- SoapTransportImporter.cs
- ClusterRegistryConfigurationProvider.cs
- LayoutUtils.cs
- ContainerParaClient.cs
- RunInstallerAttribute.cs
- InheritanceContextChangedEventManager.cs
- SecurityState.cs
- PeerDuplexChannelListener.cs
- BoundColumn.cs
- BooleanExpr.cs
- XmlSchemaGroupRef.cs