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
- Journaling.cs
- ToolStripSystemRenderer.cs
- PromptStyle.cs
- TreeNode.cs
- DropSource.cs
- ObjectDataSourceWizardForm.cs
- ModuleBuilderData.cs
- Timeline.cs
- DataControlFieldCell.cs
- RolePrincipal.cs
- DrawingContext.cs
- MLangCodePageEncoding.cs
- GroupDescription.cs
- ExpressionBuilderContext.cs
- Visitors.cs
- ListMarkerLine.cs
- ThaiBuddhistCalendar.cs
- MeasureItemEvent.cs
- FrameworkObject.cs
- InstanceKeyCollisionException.cs
- DataStreams.cs
- DataSourceExpression.cs
- AsyncResult.cs
- RecognizedPhrase.cs
- NamespaceListProperty.cs
- ToolBarTray.cs
- MatrixAnimationUsingKeyFrames.cs
- InteropEnvironment.cs
- WindowsFormsSynchronizationContext.cs
- DrawListViewItemEventArgs.cs
- LinkLabel.cs
- XsdValidatingReader.cs
- XmlNamespaceMappingCollection.cs
- HorizontalAlignConverter.cs
- DrawingContextWalker.cs
- WebPartDisplayModeCancelEventArgs.cs
- CompilerGeneratedAttribute.cs
- SHA256Managed.cs
- NoResizeHandleGlyph.cs
- tooltip.cs
- BindingContext.cs
- AccessControlEntry.cs
- FrameworkContentElement.cs
- StyleSheetComponentEditor.cs
- BooleanAnimationUsingKeyFrames.cs
- StringDictionaryCodeDomSerializer.cs
- LicFileLicenseProvider.cs
- WindowsAuthenticationModule.cs
- CustomSignedXml.cs
- XsltSettings.cs
- RSAOAEPKeyExchangeFormatter.cs
- GeometryDrawing.cs
- ColumnTypeConverter.cs
- CodeLabeledStatement.cs
- MsmqHostedTransportManager.cs
- SmtpLoginAuthenticationModule.cs
- TextFormatter.cs
- EmptyCollection.cs
- MatrixTransform3D.cs
- StorageAssociationSetMapping.cs
- UnionCodeGroup.cs
- ArraySet.cs
- ToolStripItemCollection.cs
- EventMappingSettingsCollection.cs
- AsyncCodeActivityContext.cs
- ResourceKey.cs
- NameValuePair.cs
- DesignerSerializationOptionsAttribute.cs
- unsafenativemethodstextservices.cs
- RegexNode.cs
- CompiledXpathExpr.cs
- PageVisual.cs
- ClientData.cs
- DetailsViewDeletedEventArgs.cs
- NTAccount.cs
- DataGridViewLayoutData.cs
- MailWebEventProvider.cs
- ConstNode.cs
- HttpProcessUtility.cs
- ConnectionManagementElement.cs
- DataGridViewTopLeftHeaderCell.cs
- SoundPlayerAction.cs
- AspCompat.cs
- MenuItem.cs
- WebPartUtil.cs
- Regex.cs
- XmlFormatMapping.cs
- SessionPageStatePersister.cs
- CheckedListBox.cs
- SafeUserTokenHandle.cs
- DataGridViewCell.cs
- OptimalBreakSession.cs
- AnimationTimeline.cs
- Point3DCollection.cs
- _PooledStream.cs
- WorkflowControlEndpoint.cs
- SymLanguageType.cs
- MetadataArtifactLoaderCompositeFile.cs
- AnimationException.cs
- SlotInfo.cs