Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- // // 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
- SrgsNameValueTag.cs
- SpellerStatusTable.cs
- DirectionalLight.cs
- CodeLabeledStatement.cs
- DataSetUtil.cs
- OperationFormatUse.cs
- BitmapDecoder.cs
- FontFamilyIdentifier.cs
- Baml2006KnownTypes.cs
- CustomWebEventKey.cs
- Imaging.cs
- InputElement.cs
- MenuAutoFormat.cs
- TableCell.cs
- MLangCodePageEncoding.cs
- EventListener.cs
- XamlFxTrace.cs
- SiteMapNodeItem.cs
- SecurityKeyIdentifier.cs
- COM2ICategorizePropertiesHandler.cs
- SelectionWordBreaker.cs
- TimeEnumHelper.cs
- AutoResizedEvent.cs
- SqlCacheDependencyDatabaseCollection.cs
- FormViewDeletedEventArgs.cs
- TextDecorationCollectionConverter.cs
- SByteConverter.cs
- XPathSingletonIterator.cs
- DataList.cs
- AppDomainGrammarProxy.cs
- GlyphShapingProperties.cs
- CodeMemberEvent.cs
- Propagator.Evaluator.cs
- UrlMappingCollection.cs
- RealProxy.cs
- sqlinternaltransaction.cs
- MouseEventArgs.cs
- ItemsControl.cs
- OutputCacheProfileCollection.cs
- ValidatingPropertiesEventArgs.cs
- GroupItemAutomationPeer.cs
- ExpressionBuilder.cs
- EntityDataSourceDesignerHelper.cs
- IDataContractSurrogate.cs
- ExceptionTrace.cs
- HelpOperationInvoker.cs
- InternalBufferOverflowException.cs
- DataGridHeaderBorder.cs
- XPathBinder.cs
- TimeSpan.cs
- AuthStoreRoleProvider.cs
- ContractAdapter.cs
- TextParagraphCache.cs
- FormViewActionList.cs
- ObfuscationAttribute.cs
- TableCellCollection.cs
- LinqDataSourceValidationException.cs
- RtfToXamlReader.cs
- StorageEndPropertyMapping.cs
- LabelEditEvent.cs
- TraceSection.cs
- ApplicationTrust.cs
- DataBindingCollectionConverter.cs
- EditorPartChrome.cs
- CustomValidator.cs
- BindingObserver.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Oci.cs
- WindowProviderWrapper.cs
- ToolTipService.cs
- MetadataItemEmitter.cs
- RuntimeUtils.cs
- FontDriver.cs
- RegexMatchCollection.cs
- MethodAccessException.cs
- CalendarButtonAutomationPeer.cs
- BitmapEffectDrawingContextWalker.cs
- PersonalizationProviderHelper.cs
- DataObjectAttribute.cs
- ObjectTag.cs
- CodeDirectionExpression.cs
- WebPartConnectVerb.cs
- ObjectKeyFrameCollection.cs
- Clock.cs
- Utility.cs
- WindowShowOrOpenTracker.cs
- OdbcEnvironmentHandle.cs
- ZipIOCentralDirectoryFileHeader.cs
- ActionFrame.cs
- TextElementEnumerator.cs
- Matrix.cs
- ParallelLoopState.cs
- KerberosTicketHashIdentifierClause.cs
- FastPropertyAccessor.cs
- WebControlsSection.cs
- UserValidatedEventArgs.cs
- SchemaTableColumn.cs
- TearOffProxy.cs
- StringWriter.cs
- ContextProperty.cs