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
- TemplateInstanceAttribute.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ReaderWriterLock.cs
- CatalogZoneBase.cs
- ProtocolsConfigurationEntry.cs
- Attributes.cs
- SymmetricSecurityProtocolFactory.cs
- DictionaryChange.cs
- IPHostEntry.cs
- SchemaComplexType.cs
- TabControlCancelEvent.cs
- Drawing.cs
- OracleTimeSpan.cs
- TreeNodeCollection.cs
- SqlUnionizer.cs
- StickyNote.cs
- SqlConnection.cs
- IpcClientManager.cs
- XmlSchemaObjectCollection.cs
- DefaultEvaluationContext.cs
- DataGridViewElement.cs
- EntityType.cs
- ClientConfigurationHost.cs
- Int32.cs
- ControlIdConverter.cs
- RawStylusInputCustomDataList.cs
- OracleRowUpdatingEventArgs.cs
- BindingOperations.cs
- BitmapEffectDrawingContextWalker.cs
- ThemeDirectoryCompiler.cs
- QueryOutputWriter.cs
- ThemeDictionaryExtension.cs
- TransformCollection.cs
- WpfXamlLoader.cs
- NavigationWindowAutomationPeer.cs
- DataControlFieldHeaderCell.cs
- RectAnimationClockResource.cs
- _UriSyntax.cs
- XmlAnyElementAttributes.cs
- FunctionUpdateCommand.cs
- IncomingWebRequestContext.cs
- DataGridPageChangedEventArgs.cs
- QueryReaderSettings.cs
- XappLauncher.cs
- StorageFunctionMapping.cs
- ThemeInfoAttribute.cs
- DynamicResourceExtensionConverter.cs
- TableProviderWrapper.cs
- RenderData.cs
- BitmapEffectGroup.cs
- DataSourceDesigner.cs
- ReaderWriterLock.cs
- UnitControl.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SwitchLevelAttribute.cs
- FileBasedResourceGroveler.cs
- PtsHelper.cs
- SelectedCellsCollection.cs
- XmlSchemaSimpleContent.cs
- DBProviderConfigurationHandler.cs
- XmlSchemaParticle.cs
- HitTestParameters3D.cs
- SignatureResourceHelper.cs
- SqlBuffer.cs
- WinInetCache.cs
- ComponentSerializationService.cs
- FormsIdentity.cs
- WindowsPrincipal.cs
- GetPageCompletedEventArgs.cs
- Attachment.cs
- cookieexception.cs
- CategoryGridEntry.cs
- RelationshipConverter.cs
- MasterPageCodeDomTreeGenerator.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- ControlType.cs
- TableCellAutomationPeer.cs
- Quaternion.cs
- FtpWebResponse.cs
- PlainXmlWriter.cs
- Compilation.cs
- SID.cs
- ErrorsHelper.cs
- PathFigure.cs
- ThrowHelper.cs
- Accessible.cs
- DataDocumentXPathNavigator.cs
- XmlArrayItemAttribute.cs
- ObjectTag.cs
- ComponentEditorPage.cs
- PageTheme.cs
- DigitShape.cs
- StorageInfo.cs
- ValueSerializerAttribute.cs
- DirtyTextRange.cs
- PackageRelationshipCollection.cs
- DirtyTextRange.cs
- HttpContext.cs
- DefaultSection.cs
- DefaultPropertyAttribute.cs