Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementProjectedSlot.cs / 1305376 / CaseStatementProjectedSlot.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 CaseStatementProjectedSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementProjectedSlot(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 CaseStatementProjectedSlot(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
- wmiprovider.cs
- XmlCodeExporter.cs
- IdnElement.cs
- FormViewInsertEventArgs.cs
- TextDecoration.cs
- ToolStripHighContrastRenderer.cs
- SimpleBitVector32.cs
- RequestTimeoutManager.cs
- FontConverter.cs
- PathFigureCollectionConverter.cs
- Setter.cs
- WebPartDisplayModeCancelEventArgs.cs
- BrowsableAttribute.cs
- MaskedTextProvider.cs
- BaseEntityWrapper.cs
- PublisherIdentityPermission.cs
- X509SubjectKeyIdentifierClause.cs
- MapPathBasedVirtualPathProvider.cs
- Win32.cs
- TdsParserHelperClasses.cs
- SolidBrush.cs
- XdrBuilder.cs
- HMACSHA1.cs
- webbrowsersite.cs
- AttributeUsageAttribute.cs
- CompilerTypeWithParams.cs
- NonParentingControl.cs
- HashCodeCombiner.cs
- KeyConverter.cs
- DialogDivider.cs
- SqlStream.cs
- XmlReaderSettings.cs
- HierarchicalDataBoundControl.cs
- DecimalKeyFrameCollection.cs
- CustomLineCap.cs
- SqlCacheDependencyDatabase.cs
- ZipFileInfoCollection.cs
- TraceContext.cs
- SmtpNtlmAuthenticationModule.cs
- PropertyFilter.cs
- EncryptedKey.cs
- DateTimeStorage.cs
- ReaderContextStackData.cs
- BaseProcessor.cs
- HtmlInputHidden.cs
- CookieParameter.cs
- XamlTypeMapperSchemaContext.cs
- HtmlControlPersistable.cs
- CharacterShapingProperties.cs
- PerfCounterSection.cs
- TabletDevice.cs
- ConcurrencyBehavior.cs
- ToolStripItemClickedEventArgs.cs
- TransformValueSerializer.cs
- DataRecordObjectView.cs
- ServiceInfo.cs
- BooleanConverter.cs
- BinaryEditor.cs
- UInt16.cs
- TextParaClient.cs
- RawStylusInputCustomData.cs
- SystemIPInterfaceStatistics.cs
- HtmlForm.cs
- MenuItemStyleCollection.cs
- SqlDataReaderSmi.cs
- TypeDependencyAttribute.cs
- ProcessThreadCollection.cs
- SafeCertificateStore.cs
- DataGridItemCollection.cs
- MobileControl.cs
- SynchronizationHandlesCodeDomSerializer.cs
- Regex.cs
- MsmqIntegrationBindingElement.cs
- UnmanagedMemoryStreamWrapper.cs
- ReplyAdapterChannelListener.cs
- WebSysDefaultValueAttribute.cs
- LambdaValue.cs
- SegmentInfo.cs
- WebBrowser.cs
- TreeNode.cs
- MdiWindowListItemConverter.cs
- PagerStyle.cs
- WebPartAddingEventArgs.cs
- ErrorWrapper.cs
- AttributeCollection.cs
- ThreadPoolTaskScheduler.cs
- TextRangeEditTables.cs
- TagPrefixCollection.cs
- FileSecurity.cs
- WorkflowMarkupSerializationException.cs
- ISFClipboardData.cs
- AutomationPatternInfo.cs
- KeyFrames.cs
- NamedPipeAppDomainProtocolHandler.cs
- ComplexPropertyEntry.cs
- XPathAncestorQuery.cs
- PagerSettings.cs
- PathStreamGeometryContext.cs
- DataBoundControlAdapter.cs
- ScrollableControl.cs