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
- FixedPageProcessor.cs
- DataColumnMappingCollection.cs
- ForeignConstraint.cs
- Funcletizer.cs
- SortDescription.cs
- FrameAutomationPeer.cs
- HttpFileCollection.cs
- PolicyChain.cs
- WebPartUtil.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ServiceNameElementCollection.cs
- PieceNameHelper.cs
- InvalidWMPVersionException.cs
- SettingsPropertyNotFoundException.cs
- Process.cs
- InputBindingCollection.cs
- GPPOINT.cs
- DataReceivedEventArgs.cs
- DynamicPropertyReader.cs
- Types.cs
- SQlBooleanStorage.cs
- Semaphore.cs
- StretchValidation.cs
- TextEditorCopyPaste.cs
- SecurityContextSecurityTokenAuthenticator.cs
- HttpRuntime.cs
- XmlParserContext.cs
- FileAuthorizationModule.cs
- SamlConstants.cs
- DoubleLink.cs
- ContentFileHelper.cs
- NotFiniteNumberException.cs
- NetworkStream.cs
- DataKeyArray.cs
- SqlDataSourceView.cs
- ContentPresenter.cs
- DrawListViewItemEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- DataRelationCollection.cs
- _UriTypeConverter.cs
- MetadataUtil.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- JpegBitmapDecoder.cs
- GetWinFXPath.cs
- SettingsSection.cs
- PageContentCollection.cs
- ButtonStandardAdapter.cs
- ScrollBarAutomationPeer.cs
- ControlOperationBehavior.cs
- UDPClient.cs
- StaticExtension.cs
- CharacterShapingProperties.cs
- PropertyKey.cs
- ParamArrayAttribute.cs
- Rotation3DKeyFrameCollection.cs
- ConstructorBuilder.cs
- PeerTransportCredentialType.cs
- HttpStreamXmlDictionaryWriter.cs
- HttpHandlerAction.cs
- MsmqMessageProperty.cs
- SharedDp.cs
- WebBrowsableAttribute.cs
- WebRequest.cs
- SimpleRecyclingCache.cs
- SmtpLoginAuthenticationModule.cs
- XsltContext.cs
- OutputCacheSettingsSection.cs
- WinEventWrap.cs
- Module.cs
- _DynamicWinsockMethods.cs
- ProjectionPath.cs
- ShaderRenderModeValidation.cs
- UserNameServiceElement.cs
- ConfigurationConverterBase.cs
- PropertyTabChangedEvent.cs
- BindingBase.cs
- DataGridViewUtilities.cs
- ConfigurationHandlersInstallComponent.cs
- DesignerOptionService.cs
- MultitargetUtil.cs
- StylusOverProperty.cs
- BuilderInfo.cs
- Point3DAnimationUsingKeyFrames.cs
- OverrideMode.cs
- GroupedContextMenuStrip.cs
- ChangeDirector.cs
- TaskDesigner.cs
- CodeDomDesignerLoader.cs
- ManagedWndProcTracker.cs
- WhileDesigner.xaml.cs
- NativeCompoundFileAPIs.cs
- HtmlShimManager.cs
- EntityWrapper.cs
- BinaryObjectInfo.cs
- EntityDataSourceContainerNameItem.cs
- ListenerConstants.cs
- Registry.cs
- mediaclock.cs
- ListControlDesigner.cs
- ImpersonationContext.cs