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
- EnumMemberAttribute.cs
- CodeValidator.cs
- Graphics.cs
- TextStore.cs
- TabPage.cs
- TemplateContent.cs
- GeneratedContractType.cs
- HttpInputStream.cs
- ParagraphResult.cs
- VisualCollection.cs
- TextBoxAutomationPeer.cs
- Transactions.cs
- SqlDataRecord.cs
- BodyWriter.cs
- AppDomainAttributes.cs
- CodeDomLocalizationProvider.cs
- DataContractSerializerOperationGenerator.cs
- RegexReplacement.cs
- TemplateXamlParser.cs
- XmlMapping.cs
- EntryWrittenEventArgs.cs
- QilLiteral.cs
- TableRow.cs
- StrokeNodeEnumerator.cs
- Guid.cs
- RSACryptoServiceProvider.cs
- MSAAEventDispatcher.cs
- XmlRawWriterWrapper.cs
- XmlSchemaImport.cs
- ColorContextHelper.cs
- OracleParameterCollection.cs
- EventTrigger.cs
- Polyline.cs
- XamlFilter.cs
- CustomAttributeFormatException.cs
- RC2.cs
- CellPartitioner.cs
- HashAlgorithm.cs
- PrinterUnitConvert.cs
- DbProviderConfigurationHandler.cs
- LogArchiveSnapshot.cs
- FactoryId.cs
- NameValueCollection.cs
- FileInfo.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SerializationInfoEnumerator.cs
- GB18030Encoding.cs
- HtmlTitle.cs
- SqlParameter.cs
- StringResourceManager.cs
- CallContext.cs
- Rect.cs
- SiteMapProvider.cs
- ApplicationId.cs
- SoapWriter.cs
- EllipseGeometry.cs
- DataGridViewSelectedRowCollection.cs
- WebPartTransformerCollection.cs
- HandlerFactoryWrapper.cs
- SamlSubject.cs
- Merger.cs
- AsyncSerializedWorker.cs
- SubtreeProcessor.cs
- XmlText.cs
- ListSortDescriptionCollection.cs
- HyperLinkField.cs
- Source.cs
- KerberosSecurityTokenAuthenticator.cs
- ObservableCollection.cs
- ChildTable.cs
- MemberDomainMap.cs
- CharAnimationUsingKeyFrames.cs
- Rotation3D.cs
- SQLBoolean.cs
- Graph.cs
- MessageHeaders.cs
- RichTextBox.cs
- FrameworkElementFactoryMarkupObject.cs
- StylusDownEventArgs.cs
- PathNode.cs
- LocalizableResourceBuilder.cs
- TableAutomationPeer.cs
- TextBreakpoint.cs
- DBCSCodePageEncoding.cs
- _NetRes.cs
- Latin1Encoding.cs
- IChannel.cs
- ApplicationFileCodeDomTreeGenerator.cs
- MissingManifestResourceException.cs
- DecoderExceptionFallback.cs
- EdmComplexPropertyAttribute.cs
- ExtentKey.cs
- HttpDebugHandler.cs
- BitmapEffectDrawingContextWalker.cs
- EntityTemplateUserControl.cs
- ObjectListFieldsPage.cs
- Gdiplus.cs
- ZoneLinkButton.cs
- DeploymentSectionCache.cs
- TextElementEnumerator.cs