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
- RealProxy.cs
- StringTraceRecord.cs
- EncoderNLS.cs
- ObjectStateFormatter.cs
- IOException.cs
- WebBrowserProgressChangedEventHandler.cs
- CacheSection.cs
- ClientRuntimeConfig.cs
- ClientProxyGenerator.cs
- XPathNodeHelper.cs
- SecureStringHasher.cs
- SchemaMapping.cs
- MenuItem.cs
- ColorConvertedBitmapExtension.cs
- CircleEase.cs
- RuntimeHelpers.cs
- ProtocolsConfigurationHandler.cs
- ListControl.cs
- Identity.cs
- PropertyEmitter.cs
- ExpandCollapsePattern.cs
- PasswordBoxAutomationPeer.cs
- FileDialog_Vista_Interop.cs
- Evaluator.cs
- DbCommandTree.cs
- Workspace.cs
- KeyInfo.cs
- WriteableBitmap.cs
- ProxyWebPartConnectionCollection.cs
- Utils.cs
- Publisher.cs
- ListViewHitTestInfo.cs
- Comparer.cs
- EncoderBestFitFallback.cs
- DeviceContext.cs
- ExpressionBuilderContext.cs
- ViewSimplifier.cs
- TimeSpanConverter.cs
- HitTestParameters3D.cs
- XmlArrayAttribute.cs
- SimpleLine.cs
- ReflectionUtil.cs
- OleDragDropHandler.cs
- Filter.cs
- RotateTransform3D.cs
- MonthCalendar.cs
- DynamicArgumentDesigner.xaml.cs
- TitleStyle.cs
- SqlBuffer.cs
- GroupStyle.cs
- RepeaterItemEventArgs.cs
- OperatingSystem.cs
- SrgsNameValueTag.cs
- XmlResolver.cs
- RIPEMD160Managed.cs
- Soap.cs
- ListViewGroupItemCollection.cs
- WindowsToolbarItemAsMenuItem.cs
- SQLUtility.cs
- Contracts.cs
- GACIdentityPermission.cs
- CounterSetInstanceCounterDataSet.cs
- ProfileGroupSettings.cs
- PartitionerStatic.cs
- cookie.cs
- SymmetricKey.cs
- ErrorsHelper.cs
- OnOperation.cs
- FocusTracker.cs
- SqlServices.cs
- AppDomainEvidenceFactory.cs
- UnmanagedMemoryStreamWrapper.cs
- SqlDataSourceCommandEventArgs.cs
- DetailsViewCommandEventArgs.cs
- Cursors.cs
- MediaPlayerState.cs
- InfiniteTimeSpanConverter.cs
- MembershipPasswordException.cs
- MultiSelectRootGridEntry.cs
- ComponentEvent.cs
- EditorZoneDesigner.cs
- PropertyInfoSet.cs
- __Error.cs
- GenericEnumerator.cs
- WindowsStartMenu.cs
- ConstructorBuilder.cs
- TaiwanCalendar.cs
- IntSecurity.cs
- GridView.cs
- XmlKeywords.cs
- JsonServiceDocumentSerializer.cs
- EncoderReplacementFallback.cs
- MachineKeyConverter.cs
- AutoCompleteStringCollection.cs
- DynamicPropertyReader.cs
- EpmTargetTree.cs
- EventHandlerService.cs
- XamlReaderHelper.cs
- ActivityUtilities.cs
- VectorCollection.cs