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
- EncryptedKey.cs
- ItemList.cs
- AspCompat.cs
- RegexWriter.cs
- TypedTableBase.cs
- RegistryConfigurationProvider.cs
- TransformerInfoCollection.cs
- Pen.cs
- Function.cs
- CroppedBitmap.cs
- UntrustedRecipientException.cs
- base64Transforms.cs
- PerformanceCounterCategory.cs
- BrowserCapabilitiesCompiler.cs
- IResourceProvider.cs
- DesignBindingEditor.cs
- PnrpPermission.cs
- IHttpResponseInternal.cs
- ByteRangeDownloader.cs
- BuildProviderCollection.cs
- InputMethodStateChangeEventArgs.cs
- CacheMemory.cs
- XmlSchemaException.cs
- XmlSchemaInfo.cs
- XmlText.cs
- SiteMapNodeItem.cs
- OracleNumber.cs
- CustomTypeDescriptor.cs
- TextSelectionHighlightLayer.cs
- OleDbCommand.cs
- AssemblyName.cs
- SqlExpander.cs
- ConstraintConverter.cs
- FlowchartSizeFeature.cs
- TextEndOfSegment.cs
- DataGridPageChangedEventArgs.cs
- SqlCaseSimplifier.cs
- QilPatternFactory.cs
- SecUtil.cs
- UrlPath.cs
- __TransparentProxy.cs
- CodeBlockBuilder.cs
- HealthMonitoringSection.cs
- AdRotator.cs
- IfAction.cs
- TypeDependencyAttribute.cs
- FileStream.cs
- ModifiableIteratorCollection.cs
- ToolBar.cs
- ViewStateException.cs
- MimeParameterWriter.cs
- Vector3DCollectionConverter.cs
- CustomCategoryAttribute.cs
- WmlSelectionListAdapter.cs
- MILUtilities.cs
- ManifestSignatureInformation.cs
- CodeSnippetTypeMember.cs
- UIElementHelper.cs
- Keywords.cs
- MemoryMappedFile.cs
- Operators.cs
- SqlComparer.cs
- AtomMaterializer.cs
- SharedPersonalizationStateInfo.cs
- AsyncPostBackErrorEventArgs.cs
- CodeCatchClauseCollection.cs
- ImplicitInputBrush.cs
- XamlTypeMapperSchemaContext.cs
- TextStore.cs
- DataSourceCache.cs
- SchemaObjectWriter.cs
- FontResourceCache.cs
- basevalidator.cs
- ViewLoader.cs
- Console.cs
- DataFormats.cs
- DataGridViewColumnConverter.cs
- AssemblyContextControlItem.cs
- CallbackValidatorAttribute.cs
- SliderAutomationPeer.cs
- DecimalAverageAggregationOperator.cs
- SingleStorage.cs
- MemoryFailPoint.cs
- Helpers.cs
- BindingMAnagerBase.cs
- Point3DCollectionValueSerializer.cs
- ScrollPatternIdentifiers.cs
- UrlParameterWriter.cs
- TemplateBamlTreeBuilder.cs
- DiscoveryMessageSequenceCD1.cs
- FontStretches.cs
- Opcode.cs
- WebPartTransformerAttribute.cs
- Bidi.cs
- CompilerParameters.cs
- DesignerCalendarAdapter.cs
- ISO2022Encoding.cs
- NamespaceDisplay.xaml.cs
- Match.cs
- TrackingQuery.cs