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
- WsatTransactionHeader.cs
- StrokeSerializer.cs
- BinaryParser.cs
- ComPlusSynchronizationContext.cs
- AppDomainManager.cs
- ColumnCollection.cs
- Utilities.cs
- StaticResourceExtension.cs
- SoapFault.cs
- EntityContainerRelationshipSetEnd.cs
- TextParagraph.cs
- complextypematerializer.cs
- Expressions.cs
- InstalledVoice.cs
- HtmlImage.cs
- DataGridViewSelectedColumnCollection.cs
- XmlLanguage.cs
- RowsCopiedEventArgs.cs
- ResolveInfo.cs
- Menu.cs
- MediaEntryAttribute.cs
- InstanceContextMode.cs
- ActivityBuilder.cs
- JoinCqlBlock.cs
- DelegatingTypeDescriptionProvider.cs
- SimpleWorkerRequest.cs
- DataGridViewControlCollection.cs
- AutomationPeer.cs
- Site.cs
- XmlSubtreeReader.cs
- PropertyToken.cs
- WindowsSlider.cs
- ProcessHostMapPath.cs
- FixedSOMLineCollection.cs
- XmlSchemaProviderAttribute.cs
- ButtonChrome.cs
- SingleConverter.cs
- InfiniteIntConverter.cs
- ControlCollection.cs
- HwndSourceParameters.cs
- prompt.cs
- GrammarBuilderRuleRef.cs
- PropertyEmitter.cs
- TableFieldsEditor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlImplementation.cs
- RequestNavigateEventArgs.cs
- ComplexType.cs
- GridSplitter.cs
- OrderedDictionaryStateHelper.cs
- StringInfo.cs
- TextInfo.cs
- AsymmetricSignatureFormatter.cs
- NotifyCollectionChangedEventArgs.cs
- AspNetSynchronizationContext.cs
- ExceptionList.cs
- CompModSwitches.cs
- ButtonPopupAdapter.cs
- AppDomainProtocolHandler.cs
- StyleCollection.cs
- Nullable.cs
- CriticalFinalizerObject.cs
- PageVisual.cs
- PersonalizationAdministration.cs
- DataRowComparer.cs
- InheritanceContextChangedEventManager.cs
- ScrollProviderWrapper.cs
- TokenBasedSet.cs
- HierarchicalDataBoundControlAdapter.cs
- MailHeaderInfo.cs
- BitmapEffectInput.cs
- ImageFormatConverter.cs
- InstanceCreationEditor.cs
- DoubleUtil.cs
- SmiEventSink.cs
- ProfileServiceManager.cs
- MinimizableAttributeTypeConverter.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- AttributeCollection.cs
- FunctionDefinition.cs
- HtmlTableCell.cs
- BindingSource.cs
- ResourceKey.cs
- CapabilitiesRule.cs
- BaseTemplatedMobileComponentEditor.cs
- UriTemplateHelpers.cs
- ConfigurationStrings.cs
- EmptyEnumerator.cs
- Part.cs
- ToolBar.cs
- StringToken.cs
- TreeNodeMouseHoverEvent.cs
- SimpleTypeResolver.cs
- DetailsViewDeletedEventArgs.cs
- ImageMetadata.cs
- IdentityNotMappedException.cs
- MergeFailedEvent.cs
- OleDbRowUpdatingEvent.cs
- LocalizabilityAttribute.cs
- PreviewKeyDownEventArgs.cs