Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 2 / 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
- EngineSiteSapi.cs
- ColorDialog.cs
- EventQueueState.cs
- PackWebResponse.cs
- DateTimeUtil.cs
- parserscommon.cs
- UnsafeNativeMethods.cs
- XmlDataSourceView.cs
- Component.cs
- CodeMemberField.cs
- AudienceUriMode.cs
- CodeFieldReferenceExpression.cs
- XmlElementAttributes.cs
- FontCacheLogic.cs
- ComponentEvent.cs
- AssemblyFilter.cs
- ProfilePropertySettings.cs
- FieldTemplateUserControl.cs
- JumpList.cs
- InputLanguageProfileNotifySink.cs
- RC2.cs
- RIPEMD160Managed.cs
- ExecutionTracker.cs
- Privilege.cs
- RightsManagementInformation.cs
- EventBuilder.cs
- HttpTransportSecurity.cs
- Conditional.cs
- OdbcInfoMessageEvent.cs
- DataSourceBooleanViewSchemaConverter.cs
- ParameterToken.cs
- Messages.cs
- PeerEndPoint.cs
- ContractTypeNameElement.cs
- ClientApiGenerator.cs
- ForeignKeyConstraint.cs
- COM2ComponentEditor.cs
- BaseResourcesBuildProvider.cs
- Util.cs
- Function.cs
- BatchServiceHost.cs
- RawTextInputReport.cs
- SQLSingleStorage.cs
- TemplateBuilder.cs
- ISFClipboardData.cs
- TokenizerHelper.cs
- ColorInterpolationModeValidation.cs
- CommentEmitter.cs
- ListViewGroupItemCollection.cs
- StylusButton.cs
- DoubleUtil.cs
- XamlSerializerUtil.cs
- InfocardExtendedInformationEntry.cs
- TextEditorCopyPaste.cs
- TypeCacheManager.cs
- ContextMenuAutomationPeer.cs
- SatelliteContractVersionAttribute.cs
- SimpleMailWebEventProvider.cs
- NativeMethods.cs
- PropertyChangedEventArgs.cs
- EntityContainerEmitter.cs
- GridViewAutomationPeer.cs
- Metafile.cs
- EtwTrace.cs
- FormsAuthentication.cs
- DataGridViewCellCollection.cs
- MaskedTextProvider.cs
- SystemColorTracker.cs
- CssTextWriter.cs
- DataGridLinkButton.cs
- GraphicsPathIterator.cs
- TouchFrameEventArgs.cs
- RecognizedAudio.cs
- PackageDocument.cs
- SimpleTypeResolver.cs
- WebSysDescriptionAttribute.cs
- ExpressionEditorAttribute.cs
- ExpressionVisitor.cs
- XmlSchemaParticle.cs
- EventLogPermissionEntryCollection.cs
- HttpsHostedTransportConfiguration.cs
- RolePrincipal.cs
- RegexCode.cs
- AccessibleObject.cs
- NamedPipeProcessProtocolHandler.cs
- DictionaryGlobals.cs
- SctClaimDictionary.cs
- ASCIIEncoding.cs
- BamlLocalizationDictionary.cs
- ViewValidator.cs
- RemoveStoryboard.cs
- XPathScanner.cs
- JobDuplex.cs
- DataListItemCollection.cs
- LassoSelectionBehavior.cs
- SecurityChannel.cs
- HostingEnvironment.cs
- InputBuffer.cs
- RightsManagementResourceHelper.cs
- PermissionRequestEvidence.cs