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
- InvalidWMPVersionException.cs
- DbConnectionPoolOptions.cs
- ImageMap.cs
- FileSecurity.cs
- FastEncoder.cs
- InvokeProviderWrapper.cs
- TransactionScope.cs
- ToolStripControlHost.cs
- GreenMethods.cs
- XPathDocument.cs
- OleDbStruct.cs
- ImageConverter.cs
- ConfigurationValidatorBase.cs
- GridViewCommandEventArgs.cs
- LinqDataSourceValidationException.cs
- FileLevelControlBuilderAttribute.cs
- VirtualDirectoryMappingCollection.cs
- ResXResourceReader.cs
- ManifestSignatureInformation.cs
- ProviderCollection.cs
- TemplateBamlTreeBuilder.cs
- SecurityDescriptor.cs
- FixedSOMElement.cs
- HierarchicalDataBoundControl.cs
- ProxySimple.cs
- EllipticalNodeOperations.cs
- WebPartConnectionsCancelVerb.cs
- AssemblyInfo.cs
- TypeNameConverter.cs
- DataControlField.cs
- DataSourceCollectionBase.cs
- HandleValueEditor.cs
- ProcessHostServerConfig.cs
- ReadOnlyActivityGlyph.cs
- StringCollectionEditor.cs
- NavigationProgressEventArgs.cs
- UIElementParagraph.cs
- TableLayoutCellPaintEventArgs.cs
- NativeMethodsOther.cs
- CancelRequestedQuery.cs
- DataGridCellItemAutomationPeer.cs
- JumpItem.cs
- GridViewEditEventArgs.cs
- DBDataPermission.cs
- XmlAttribute.cs
- CheckBoxDesigner.cs
- AnonymousIdentificationModule.cs
- GridViewSelectEventArgs.cs
- Switch.cs
- propertyentry.cs
- ListViewDesigner.cs
- ServerIdentity.cs
- DataRowCollection.cs
- ConnectionString.cs
- OleDbDataReader.cs
- CategoryList.cs
- GetWinFXPath.cs
- TableParaClient.cs
- HttpException.cs
- TextRangeProviderWrapper.cs
- RequestChannelBinder.cs
- DataBindingCollection.cs
- CompilerGlobalScopeAttribute.cs
- GeometryCollection.cs
- KeySpline.cs
- WindowsListBox.cs
- SqlParameter.cs
- VariableValue.cs
- WsatConfiguration.cs
- RegexFCD.cs
- RewritingValidator.cs
- LoadedOrUnloadedOperation.cs
- EntityDataSource.cs
- WebPartTransformerCollection.cs
- AddingNewEventArgs.cs
- embossbitmapeffect.cs
- PropertyValueUIItem.cs
- PreloadHost.cs
- ValueChangedEventManager.cs
- SqlReorderer.cs
- NamespaceDecl.cs
- InheritanceUI.cs
- DBSqlParserColumn.cs
- SyndicationElementExtensionCollection.cs
- WrappedIUnknown.cs
- PseudoWebRequest.cs
- MasterPageCodeDomTreeGenerator.cs
- CodeSnippetCompileUnit.cs
- SqlTypeSystemProvider.cs
- TypedServiceOperationListItem.cs
- HMACMD5.cs
- JsonCollectionDataContract.cs
- MessageDecoder.cs
- FixedLineResult.cs
- UpdateRecord.cs
- Point3DAnimationBase.cs
- StorageComplexPropertyMapping.cs
- SqlConnectionPoolProviderInfo.cs
- HyperLinkColumn.cs
- URIFormatException.cs