Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 1 / 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
- ListView.cs
- LongSumAggregationOperator.cs
- RegexParser.cs
- DbConvert.cs
- OutputBuffer.cs
- InternalTransaction.cs
- CollectionViewSource.cs
- _NestedSingleAsyncResult.cs
- MouseBinding.cs
- ToolStripItemImageRenderEventArgs.cs
- DataGridViewComboBoxEditingControl.cs
- DecoderExceptionFallback.cs
- DesignerTransactionCloseEvent.cs
- DtdParser.cs
- Part.cs
- ExpandSegment.cs
- TextWriterTraceListener.cs
- Block.cs
- _SslStream.cs
- ExpressionList.cs
- NumberFormatInfo.cs
- SqlExpressionNullability.cs
- RectAnimationUsingKeyFrames.cs
- ConnectionProviderAttribute.cs
- ArrangedElementCollection.cs
- MarkupExtensionParser.cs
- WorkflowViewElement.cs
- WindowsProgressbar.cs
- XmlDocumentFragment.cs
- SqlMultiplexer.cs
- UnsafeNativeMethods.cs
- DaylightTime.cs
- MonthCalendar.cs
- BitmapEffectDrawingContextState.cs
- ClientConfigurationSystem.cs
- GatewayDefinition.cs
- CollectionViewGroup.cs
- ImageFormatConverter.cs
- CachedTypeface.cs
- TemplatePropertyEntry.cs
- RijndaelManaged.cs
- Stream.cs
- TemplateControlCodeDomTreeGenerator.cs
- ChannelTokenTypeConverter.cs
- SerializationSectionGroup.cs
- MimeTypeMapper.cs
- ModifiableIteratorCollection.cs
- RadialGradientBrush.cs
- NativeRecognizer.cs
- RTLAwareMessageBox.cs
- ValidatedControlConverter.cs
- ReliableOutputConnection.cs
- FontDifferentiator.cs
- RangeValuePattern.cs
- Timer.cs
- PartialCachingAttribute.cs
- XmlQueryTypeFactory.cs
- Event.cs
- Mutex.cs
- WpfPayload.cs
- DbConnectionStringBuilder.cs
- FormatException.cs
- SelectionProcessor.cs
- DocumentGridPage.cs
- EntityDataSourceReferenceGroup.cs
- NumericExpr.cs
- ping.cs
- PaintEvent.cs
- FullTextState.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MetadataItemEmitter.cs
- LogoValidationException.cs
- AcceleratedTokenProviderState.cs
- SourceFilter.cs
- RoleProviderPrincipal.cs
- WebCategoryAttribute.cs
- XpsColorContext.cs
- DbConnectionFactory.cs
- X509ChainPolicy.cs
- ReturnValue.cs
- ToolBarButtonDesigner.cs
- BamlRecordWriter.cs
- ReadOnlyDataSource.cs
- CaseStatement.cs
- RenderCapability.cs
- PrintPreviewGraphics.cs
- InstanceDescriptor.cs
- AdRotatorDesigner.cs
- SiteMap.cs
- OciEnlistContext.cs
- CodeIndexerExpression.cs
- WorkflowRuntime.cs
- ReaderWriterLock.cs
- DropTarget.cs
- PreviewPageInfo.cs
- AspCompat.cs
- Table.cs
- FtpWebRequest.cs
- ResourceReader.cs
- WebPartCancelEventArgs.cs