Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- InternalConfigEventArgs.cs
- SafeNativeMethods.cs
- CreateUserWizardStep.cs
- SqlNotificationRequest.cs
- UnionExpr.cs
- GroupDescription.cs
- ContextMenu.cs
- PropertyValueUIItem.cs
- GlobalProxySelection.cs
- FormsAuthenticationTicket.cs
- KnownIds.cs
- ThrowHelper.cs
- DocumentCollection.cs
- MediaSystem.cs
- HttpRequest.cs
- TextBoxAutomationPeer.cs
- IndexedGlyphRun.cs
- SchemaConstraints.cs
- SingleStorage.cs
- DefaultCommandConverter.cs
- WebResourceUtil.cs
- DBSqlParserTableCollection.cs
- CultureMapper.cs
- bidPrivateBase.cs
- MenuCommandsChangedEventArgs.cs
- Dynamic.cs
- Pens.cs
- Dump.cs
- EditorBrowsableAttribute.cs
- ZipIOExtraField.cs
- MediaSystem.cs
- ChangePassword.cs
- PolicyLevel.cs
- DataGridColumnHeader.cs
- SqlTrackingWorkflowInstance.cs
- HyperlinkAutomationPeer.cs
- Component.cs
- datacache.cs
- PtsPage.cs
- CornerRadius.cs
- KeyValueConfigurationElement.cs
- Line.cs
- DbUpdateCommandTree.cs
- EdmError.cs
- CornerRadiusConverter.cs
- Compilation.cs
- RegexCode.cs
- PropertyOverridesDialog.cs
- ControlCachePolicy.cs
- contentDescriptor.cs
- Expression.cs
- EventLogException.cs
- CompiledELinqQueryState.cs
- COM2AboutBoxPropertyDescriptor.cs
- securitycriticaldataformultiplegetandset.cs
- DataBoundControlAdapter.cs
- FlowLayoutPanel.cs
- Visual3DCollection.cs
- ListView.cs
- ContainerControl.cs
- keycontainerpermission.cs
- BinaryUtilClasses.cs
- ItemList.cs
- GPRECT.cs
- ChangeNode.cs
- LookupNode.cs
- DefaultObjectMappingItemCollection.cs
- AssociationTypeEmitter.cs
- SoapEnumAttribute.cs
- TextSelectionHelper.cs
- DirectionalLight.cs
- TagPrefixInfo.cs
- PngBitmapEncoder.cs
- OleDbConnectionInternal.cs
- EditCommandColumn.cs
- SerializableAttribute.cs
- PersonalizationAdministration.cs
- HttpPostedFileBase.cs
- SQLByteStorage.cs
- ResourceReferenceKeyNotFoundException.cs
- RegionIterator.cs
- Style.cs
- NativeMethods.cs
- GeneratedContractType.cs
- DictionaryBase.cs
- ProjectionPruner.cs
- KeyToListMap.cs
- IsolatedStoragePermission.cs
- SessionStateModule.cs
- SafeBuffer.cs
- GroupBoxAutomationPeer.cs
- AxisAngleRotation3D.cs
- BaseAppDomainProtocolHandler.cs
- NetworkInformationPermission.cs
- PropertyGridView.cs
- activationcontext.cs
- CacheForPrimitiveTypes.cs
- CallbackDebugBehavior.cs
- SignedXml.cs
- DataGridViewTopLeftHeaderCell.cs