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
- TimeSpanStorage.cs
- GeneralTransform2DTo3D.cs
- HotSpot.cs
- __ComObject.cs
- ScrollEventArgs.cs
- SqlUtil.cs
- HostedElements.cs
- WebPartMenuStyle.cs
- TextServicesContext.cs
- KerberosReceiverSecurityToken.cs
- MasterPageParser.cs
- AnchoredBlock.cs
- _NetworkingPerfCounters.cs
- AddInServer.cs
- TimeSpanValidatorAttribute.cs
- PackageStore.cs
- DbProviderFactoriesConfigurationHandler.cs
- TempEnvironment.cs
- ResXBuildProvider.cs
- NullReferenceException.cs
- UnsafeNativeMethodsCLR.cs
- CommentAction.cs
- StdValidatorsAndConverters.cs
- X509CertificateRecipientServiceCredential.cs
- NetworkInformationException.cs
- contentDescriptor.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ToolBarButton.cs
- PolyLineSegmentFigureLogic.cs
- HtmlDocument.cs
- NegationPusher.cs
- HtmlAnchor.cs
- CodeTypeOfExpression.cs
- WriteStateInfoBase.cs
- SharedPersonalizationStateInfo.cs
- DesignerRegionMouseEventArgs.cs
- ImageSource.cs
- IntSecurity.cs
- SqlClientWrapperSmiStream.cs
- TextBox.cs
- CommonDialog.cs
- Dynamic.cs
- Point3DCollectionConverter.cs
- GenericEnumerator.cs
- XmlSerializableServices.cs
- HiddenField.cs
- DbConnectionPoolOptions.cs
- HandledMouseEvent.cs
- XPathMultyIterator.cs
- TableLayoutStyle.cs
- Bits.cs
- FormViewPageEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- HideDisabledControlAdapter.cs
- OrderPreservingMergeHelper.cs
- SpoolingTaskBase.cs
- Membership.cs
- WebPartCancelEventArgs.cs
- UInt32Converter.cs
- ImportRequest.cs
- HtmlInputReset.cs
- Rect3DConverter.cs
- TreeNodeCollection.cs
- XmlDomTextWriter.cs
- _Win32.cs
- ExpandCollapsePattern.cs
- AuthenticationModulesSection.cs
- SeparatorAutomationPeer.cs
- TreeNodeMouseHoverEvent.cs
- _ConnectionGroup.cs
- DataGridViewToolTip.cs
- DispatcherHookEventArgs.cs
- TextBox.cs
- CoTaskMemHandle.cs
- IFlowDocumentViewer.cs
- Image.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ValidationEventArgs.cs
- TreeNode.cs
- OdbcUtils.cs
- DtrList.cs
- TrackingLocationCollection.cs
- ServerProtocol.cs
- BoundsDrawingContextWalker.cs
- CodeGotoStatement.cs
- WebResponse.cs
- MenuTracker.cs
- NewArrayExpression.cs
- DiscoveryClient.cs
- LongValidatorAttribute.cs
- AutoGeneratedField.cs
- FormViewInsertEventArgs.cs
- DataGridBoolColumn.cs
- DefaultSection.cs
- SafeArrayRankMismatchException.cs
- SqlBuilder.cs
- DirectoryLocalQuery.cs
- Journaling.cs
- ImageMap.cs
- ImageFormatConverter.cs