Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 1 / 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
- ChannelManager.cs
- PartialCachingControl.cs
- CodeNamespace.cs
- _OverlappedAsyncResult.cs
- Identifier.cs
- SafeThreadHandle.cs
- TreeChangeInfo.cs
- UrlParameterWriter.cs
- TrustSection.cs
- WeakReferenceKey.cs
- Hashtable.cs
- CompilationLock.cs
- Claim.cs
- sqlnorm.cs
- ObjectReaderCompiler.cs
- SerializationSectionGroup.cs
- APCustomTypeDescriptor.cs
- ProxyHwnd.cs
- ContextMenuService.cs
- SQLBoolean.cs
- FileIOPermission.cs
- Rules.cs
- AuthenticateEventArgs.cs
- ElementFactory.cs
- ConfigurationLocationCollection.cs
- RC2CryptoServiceProvider.cs
- ConfigurationManagerInternal.cs
- RSAPKCS1KeyExchangeFormatter.cs
- UpdateTracker.cs
- WebServiceMethodData.cs
- HandleTable.cs
- DataBindingExpressionBuilder.cs
- VersionedStreamOwner.cs
- SchemaNamespaceManager.cs
- CryptoApi.cs
- ProfilePropertyMetadata.cs
- Label.cs
- Axis.cs
- LifetimeServices.cs
- X509Chain.cs
- ModelUIElement3D.cs
- BamlTreeUpdater.cs
- PropertyGridView.cs
- DataListGeneralPage.cs
- LocalClientSecuritySettings.cs
- ToolStripLabel.cs
- controlskin.cs
- ToolBarButton.cs
- TextTreeTextBlock.cs
- TimelineClockCollection.cs
- ShutDownListener.cs
- AttributeTable.cs
- LinkConverter.cs
- XmlExtensionFunction.cs
- AppModelKnownContentFactory.cs
- WeakHashtable.cs
- UInt64Converter.cs
- ActivityBindForm.Designer.cs
- TextDecoration.cs
- XPathSingletonIterator.cs
- AnnotationAuthorChangedEventArgs.cs
- StaticDataManager.cs
- TransactionChannelFactory.cs
- IsolatedStorage.cs
- DuplicateDetector.cs
- XhtmlBasicFormAdapter.cs
- Italic.cs
- InternalBase.cs
- FigureParagraph.cs
- HttpModuleActionCollection.cs
- itemelement.cs
- IdentityModelStringsVersion1.cs
- OracleBinary.cs
- WindowInteractionStateTracker.cs
- InputProcessorProfiles.cs
- Rfc2898DeriveBytes.cs
- MergeFailedEvent.cs
- ColumnCollection.cs
- FixUpCollection.cs
- CompiledQueryCacheKey.cs
- Site.cs
- CompilerTypeWithParams.cs
- AttributeSetAction.cs
- SapiRecoInterop.cs
- IpcClientManager.cs
- OleDbRowUpdatedEvent.cs
- ADRoleFactoryConfiguration.cs
- Queue.cs
- RemotingHelper.cs
- Propagator.cs
- InkPresenter.cs
- DescendentsWalker.cs
- ConfigurationLockCollection.cs
- DataGridViewRowPostPaintEventArgs.cs
- MenuItemCollection.cs
- DiagnosticTrace.cs
- LineServices.cs
- DetailsViewModeEventArgs.cs
- SeekStoryboard.cs
- BezierSegment.cs