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
- AncillaryOps.cs
- StateChangeEvent.cs
- localization.cs
- MouseWheelEventArgs.cs
- SqlCacheDependency.cs
- WinCategoryAttribute.cs
- MouseButtonEventArgs.cs
- figurelengthconverter.cs
- HttpTransportBindingElement.cs
- RadioButtonBaseAdapter.cs
- ByteConverter.cs
- HelloOperation11AsyncResult.cs
- SwitchElementsCollection.cs
- FileFormatException.cs
- MaterializeFromAtom.cs
- GPPOINTF.cs
- PackUriHelper.cs
- RewritingValidator.cs
- SimpleWorkerRequest.cs
- EventBuilder.cs
- PagedDataSource.cs
- OracleConnection.cs
- IISUnsafeMethods.cs
- LogEntryDeserializer.cs
- ItemsChangedEventArgs.cs
- DesignerActionKeyboardBehavior.cs
- CommandTreeTypeHelper.cs
- BuildDependencySet.cs
- ScriptServiceAttribute.cs
- BindingNavigator.cs
- DbParameterHelper.cs
- BinHexDecoder.cs
- DynamicDataExtensions.cs
- PathSegmentCollection.cs
- ExtensionWindow.cs
- ContractMapping.cs
- MaskedTextBox.cs
- Tokenizer.cs
- FormatterServices.cs
- XmlQueryOutput.cs
- Msmq4SubqueuePoisonHandler.cs
- RuleProcessor.cs
- DirectoryInfo.cs
- Int64KeyFrameCollection.cs
- PageWrapper.cs
- DeclarativeCatalogPartDesigner.cs
- ModelFactory.cs
- Html32TextWriter.cs
- InvalidWMPVersionException.cs
- CompilerInfo.cs
- PageBuildProvider.cs
- DataBoundControlHelper.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PartitionedStream.cs
- ItemsControl.cs
- XPathBuilder.cs
- DataGridViewCellPaintingEventArgs.cs
- RangeValuePatternIdentifiers.cs
- QilDataSource.cs
- GridEntry.cs
- MetadataItemCollectionFactory.cs
- ToolStripDropDownMenu.cs
- HtmlUtf8RawTextWriter.cs
- UpdatePanelControlTrigger.cs
- AnnotationStore.cs
- CollectionBuilder.cs
- ShutDownListener.cs
- InternalResources.cs
- _UriTypeConverter.cs
- OdbcFactory.cs
- TransformerInfoCollection.cs
- SymbolDocumentInfo.cs
- WebPartsPersonalization.cs
- ContextProperty.cs
- nulltextnavigator.cs
- _NestedMultipleAsyncResult.cs
- Restrictions.cs
- UserValidatedEventArgs.cs
- QueryExtender.cs
- HelpKeywordAttribute.cs
- AuthenticatingEventArgs.cs
- ConcurrentQueue.cs
- X509ChainPolicy.cs
- Rectangle.cs
- _AutoWebProxyScriptWrapper.cs
- Region.cs
- StylusPointDescription.cs
- ResourceWriter.cs
- cookiecollection.cs
- UIElementHelper.cs
- BindingOperations.cs
- BindingWorker.cs
- WindowsRegion.cs
- ConfigXmlAttribute.cs
- StructuredTypeEmitter.cs
- Translator.cs
- TextEditorTyping.cs
- SectionXmlInfo.cs
- CompilerCollection.cs
- ListSortDescriptionCollection.cs