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
- CaretElement.cs
- XmlNullResolver.cs
- WindowsPen.cs
- DataTableExtensions.cs
- PropertyGroupDescription.cs
- XmlSignatureProperties.cs
- ServicePointManager.cs
- HtmlElementCollection.cs
- SelectorAutomationPeer.cs
- ManifestSignedXml.cs
- ItemType.cs
- WebPart.cs
- HttpListenerRequest.cs
- ElementMarkupObject.cs
- PageSetupDialog.cs
- CqlQuery.cs
- __Filters.cs
- CapiNative.cs
- X509Certificate.cs
- DynamicPropertyReader.cs
- WebService.cs
- ReliableSessionBindingElementImporter.cs
- SystemPens.cs
- QilVisitor.cs
- StrokeFIndices.cs
- DesignerDataRelationship.cs
- FixUpCollection.cs
- SHA512Managed.cs
- InfiniteIntConverter.cs
- ReferencedAssemblyResolver.cs
- RemoteWebConfigurationHostStream.cs
- Documentation.cs
- RequestSecurityTokenResponse.cs
- DesignTimeTemplateParser.cs
- IndentedTextWriter.cs
- ArgumentFixer.cs
- PasswordTextContainer.cs
- StreamFormatter.cs
- EntityProviderServices.cs
- ColorTransformHelper.cs
- FontSourceCollection.cs
- SplashScreenNativeMethods.cs
- Splitter.cs
- UndoUnit.cs
- DataColumn.cs
- PropertyGeneratedEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- DeleteCardRequest.cs
- CodeDirectoryCompiler.cs
- XPathAxisIterator.cs
- MatrixAnimationBase.cs
- SpeakInfo.cs
- COM2ComponentEditor.cs
- TypeResolver.cs
- MarshalDirectiveException.cs
- LineGeometry.cs
- ProfileGroupSettings.cs
- DataServices.cs
- translator.cs
- LoadedEvent.cs
- TokenFactoryFactory.cs
- URL.cs
- ButtonColumn.cs
- ClonableStack.cs
- CharConverter.cs
- Hex.cs
- OleAutBinder.cs
- XmlSchemas.cs
- SafeEventLogWriteHandle.cs
- DesignerView.xaml.cs
- MetadataHelper.cs
- LogArchiveSnapshot.cs
- CaseInsensitiveComparer.cs
- SubstitutionList.cs
- AnonymousIdentificationSection.cs
- Compiler.cs
- KeyValueConfigurationElement.cs
- WsatStrings.cs
- CompiledIdentityConstraint.cs
- MsmqReceiveHelper.cs
- DashStyle.cs
- CollectionType.cs
- SurrogateSelector.cs
- ColumnWidthChangingEvent.cs
- RelationshipEnd.cs
- RuntimeConfig.cs
- RecognitionResult.cs
- ResourceSet.cs
- MulticastNotSupportedException.cs
- XmlSerializerAssemblyAttribute.cs
- TransformedBitmap.cs
- OdbcConnection.cs
- RSACryptoServiceProvider.cs
- DispatcherHookEventArgs.cs
- FontSource.cs
- ToolStripStatusLabel.cs
- webproxy.cs
- CircleHotSpot.cs
- ExpressionEditorSheet.cs
- HostedBindingBehavior.cs