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
- ServerIdentity.cs
- TableProviderWrapper.cs
- DbParameterHelper.cs
- ScriptResourceAttribute.cs
- StringTraceRecord.cs
- TypeForwardedToAttribute.cs
- EventMappingSettingsCollection.cs
- LookupBindingPropertiesAttribute.cs
- ControlTemplate.cs
- AttachmentCollection.cs
- FixedElement.cs
- CharAnimationUsingKeyFrames.cs
- RuleElement.cs
- TracePayload.cs
- MenuRendererStandards.cs
- ConnectorSelectionGlyph.cs
- DynamicMetaObjectBinder.cs
- EditBehavior.cs
- RoutedEventHandlerInfo.cs
- TraceLevelHelper.cs
- ISAPIRuntime.cs
- Config.cs
- WebPartCatalogAddVerb.cs
- ScriptDescriptor.cs
- ColumnResult.cs
- ColorPalette.cs
- ResourceExpressionBuilder.cs
- ArrayMergeHelper.cs
- TimeStampChecker.cs
- BooleanAnimationUsingKeyFrames.cs
- CodeConstructor.cs
- NavigationHelper.cs
- InputProviderSite.cs
- EditingMode.cs
- AutomationAttributeInfo.cs
- HttpInputStream.cs
- BasicViewGenerator.cs
- UserControlDocumentDesigner.cs
- BindingNavigatorDesigner.cs
- SqlParameter.cs
- Vector3DCollectionValueSerializer.cs
- CheckBoxField.cs
- XmlIncludeAttribute.cs
- FixedHighlight.cs
- Tile.cs
- HighlightVisual.cs
- OdbcCommand.cs
- ImageSourceConverter.cs
- SectionRecord.cs
- LocalizedNameDescriptionPair.cs
- NotificationContext.cs
- reliableinputsessionchannel.cs
- BaseTreeIterator.cs
- SignatureDescription.cs
- DateTimeValueSerializerContext.cs
- Matrix3DConverter.cs
- CheckBox.cs
- DSASignatureDeformatter.cs
- SequenceNumber.cs
- ResponseStream.cs
- LinkAreaEditor.cs
- PointCollectionValueSerializer.cs
- Solver.cs
- QilXmlWriter.cs
- SecurityKeyUsage.cs
- WindowsTab.cs
- recordstate.cs
- CodePropertyReferenceExpression.cs
- WebColorConverter.cs
- CellTreeNode.cs
- SubpageParagraph.cs
- ByteAnimationUsingKeyFrames.cs
- Gdiplus.cs
- MemoryMappedViewAccessor.cs
- ToolStripContainer.cs
- UserPreferenceChangingEventArgs.cs
- IntAverageAggregationOperator.cs
- SqlDataSourceTableQuery.cs
- basemetadatamappingvisitor.cs
- CroppedBitmap.cs
- ISAPIApplicationHost.cs
- COM2EnumConverter.cs
- KerberosTicketHashIdentifierClause.cs
- AppDomain.cs
- XmlSerializerOperationGenerator.cs
- TimeSpanParse.cs
- MemberMaps.cs
- Tile.cs
- SQLInt64.cs
- _ListenerRequestStream.cs
- ReferencedAssembly.cs
- OrderPreservingSpoolingTask.cs
- TemplateBindingExpressionConverter.cs
- ConfigXmlReader.cs
- IListConverters.cs
- CodePropertyReferenceExpression.cs
- IndexedString.cs
- RoleManagerModule.cs
- DesignTimeTemplateParser.cs
- CommentAction.cs