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
- FlowDocumentFormatter.cs
- EventHandlersStore.cs
- FixedSOMPageElement.cs
- DataKeyCollection.cs
- SourceFileBuildProvider.cs
- CacheForPrimitiveTypes.cs
- StateDesignerConnector.cs
- DrawListViewSubItemEventArgs.cs
- RangeValidator.cs
- StorageRoot.cs
- WebPartUserCapability.cs
- ImageList.cs
- CodeTypeParameter.cs
- DelegateSerializationHolder.cs
- PenContext.cs
- TypeToken.cs
- EntityDataSourceMemberPath.cs
- BlockUIContainer.cs
- InternalConfigRoot.cs
- DisplayMemberTemplateSelector.cs
- WinFormsSpinner.cs
- ItemCheckedEvent.cs
- TableAutomationPeer.cs
- ShaperBuffers.cs
- DataGridCellEditEndingEventArgs.cs
- ToolStripTextBox.cs
- PhysicalAddress.cs
- SoapExtension.cs
- TextProperties.cs
- SwitchAttribute.cs
- RegexCode.cs
- SoapSchemaImporter.cs
- StaticExtension.cs
- X509SubjectKeyIdentifierClause.cs
- PathFigureCollection.cs
- WebResourceUtil.cs
- ImmComposition.cs
- SharedPerformanceCounter.cs
- DrawingServices.cs
- CollectionAdapters.cs
- PreProcessInputEventArgs.cs
- SoapElementAttribute.cs
- ToolStripDropDownButton.cs
- ExpandSegmentCollection.cs
- XmlSchemaObjectCollection.cs
- TableHeaderCell.cs
- IntellisenseTextBox.designer.cs
- WaitHandleCannotBeOpenedException.cs
- MatrixTransform3D.cs
- PeerCustomResolverBindingElement.cs
- HttpResponseWrapper.cs
- HtmlInputFile.cs
- InternalConfirm.cs
- FormClosedEvent.cs
- UserNameSecurityToken.cs
- HtmlInputReset.cs
- QilScopedVisitor.cs
- MetadataArtifactLoaderComposite.cs
- HwndSubclass.cs
- CultureNotFoundException.cs
- SqlClientPermission.cs
- BrushMappingModeValidation.cs
- XmlMtomReader.cs
- WebControlParameterProxy.cs
- HwndHostAutomationPeer.cs
- ResourceDefaultValueAttribute.cs
- ScrollChrome.cs
- AmbientLight.cs
- WorkflowInstanceSuspendedRecord.cs
- OperatingSystem.cs
- Object.cs
- UmAlQuraCalendar.cs
- ServicePointManagerElement.cs
- EntityTypeEmitter.cs
- OracleCommand.cs
- SecurityManager.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ClientRuntimeConfig.cs
- DataGridComboBoxColumn.cs
- ListenerTraceUtility.cs
- AsyncOperation.cs
- SurrogateSelector.cs
- JapaneseLunisolarCalendar.cs
- NamespaceEmitter.cs
- EventNotify.cs
- CaseInsensitiveComparer.cs
- MobileTextWriter.cs
- RemoteWebConfigurationHostStream.cs
- AnnotationMap.cs
- ArcSegment.cs
- StorageBasedPackageProperties.cs
- ConstructorNeedsTagAttribute.cs
- ActiveXMessageFormatter.cs
- XmlNodeList.cs
- followingquery.cs
- DocumentApplicationJournalEntry.cs
- ClientFactory.cs
- WinInetCache.cs
- indexingfiltermarshaler.cs
- FormViewUpdateEventArgs.cs