Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 1 / 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
- ActivityDesigner.cs
- IntSecurity.cs
- SslStream.cs
- Win32PrintDialog.cs
- CollectionBuilder.cs
- BaseCodePageEncoding.cs
- ImageField.cs
- ServiceModelEnumValidatorAttribute.cs
- SweepDirectionValidation.cs
- InternalMappingException.cs
- EventBuilder.cs
- SyndicationElementExtensionCollection.cs
- GifBitmapDecoder.cs
- ZoneLinkButton.cs
- HideDisabledControlAdapter.cs
- RelationshipEndCollection.cs
- NamedPipeChannelFactory.cs
- RequestBringIntoViewEventArgs.cs
- DoubleLink.cs
- TableMethodGenerator.cs
- TransactionBridge.cs
- MultiTargetingUtil.cs
- CustomValidator.cs
- ReceiveActivityValidator.cs
- StorageBasedPackageProperties.cs
- ByteStack.cs
- RectValueSerializer.cs
- PersonalizationAdministration.cs
- Converter.cs
- SrgsRule.cs
- VisualStyleTypesAndProperties.cs
- List.cs
- BackgroundWorker.cs
- TableLayoutStyleCollection.cs
- Accessors.cs
- OleDbConnectionFactory.cs
- DataGridItem.cs
- HttpResponse.cs
- OutputCacheSettingsSection.cs
- SurrogateEncoder.cs
- AliasedSlot.cs
- HttpWebRequest.cs
- C14NUtil.cs
- AnnotationComponentManager.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TraceListeners.cs
- ProvideValueServiceProvider.cs
- FileVersionInfo.cs
- ConfigXmlComment.cs
- GetChildSubtree.cs
- ManipulationCompletedEventArgs.cs
- StringValueConverter.cs
- DES.cs
- AmbientValueAttribute.cs
- DataKey.cs
- JavaScriptObjectDeserializer.cs
- InvalidCastException.cs
- ScriptControlManager.cs
- KeySplineConverter.cs
- CacheMode.cs
- WmlLiteralTextAdapter.cs
- SystemResourceHost.cs
- ObjectContext.cs
- ListControlConvertEventArgs.cs
- TabletDeviceInfo.cs
- TypeTypeConverter.cs
- TextReturnReader.cs
- SecurityDescriptor.cs
- PresentationTraceSources.cs
- IgnoreDataMemberAttribute.cs
- GridViewUpdateEventArgs.cs
- DES.cs
- FormViewRow.cs
- TextWriterTraceListener.cs
- SimpleColumnProvider.cs
- DocumentSequenceHighlightLayer.cs
- SafeViewOfFileHandle.cs
- ConnectionManagementElement.cs
- AutomationElement.cs
- Compilation.cs
- Fault.cs
- Span.cs
- WSDualHttpSecurity.cs
- ShaderEffect.cs
- MarshalByValueComponent.cs
- DataTemplate.cs
- HighContrastHelper.cs
- arclist.cs
- ListViewSortEventArgs.cs
- ByeMessageApril2005.cs
- TouchFrameEventArgs.cs
- StatusBarDrawItemEvent.cs
- StringSorter.cs
- UrlPropertyAttribute.cs
- Column.cs
- ExeConfigurationFileMap.cs
- TransformConverter.cs
- SortedDictionary.cs
- configsystem.cs
- TreeNodeSelectionProcessor.cs