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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int32Collection.cs
- X509Extension.cs
- ArgumentNullException.cs
- DocumentsTrace.cs
- Separator.cs
- ReliableSessionBindingElement.cs
- DurableRuntimeValidator.cs
- Focus.cs
- CustomWebEventKey.cs
- QueryInterceptorAttribute.cs
- EmptyEnumerator.cs
- IntellisenseTextBox.designer.cs
- BindingFormattingDialog.cs
- TextEditorContextMenu.cs
- DLinqTableProvider.cs
- DataAccessException.cs
- SByte.cs
- TypeRefElement.cs
- ObjectStorage.cs
- FontStyleConverter.cs
- AsyncStreamReader.cs
- BaseTreeIterator.cs
- _BufferOffsetSize.cs
- CookielessHelper.cs
- HostingPreferredMapPath.cs
- IndexerNameAttribute.cs
- TdsValueSetter.cs
- SchemaCompiler.cs
- QueryUtil.cs
- WebBrowserNavigatedEventHandler.cs
- CodeDelegateInvokeExpression.cs
- DataSourceView.cs
- WhereQueryOperator.cs
- FileDataSourceCache.cs
- ContentTextAutomationPeer.cs
- IPHostEntry.cs
- AsyncOperationContext.cs
- QueryConverter.cs
- RSAPKCS1SignatureFormatter.cs
- FormParameter.cs
- TreeNodeCollectionEditorDialog.cs
- LinkArea.cs
- TemplatePagerField.cs
- StorageEntitySetMapping.cs
- DataGridLinkButton.cs
- SubMenuStyleCollection.cs
- RestClientProxyHandler.cs
- DataGridViewCellCollection.cs
- ScriptHandlerFactory.cs
- QilInvoke.cs
- CredentialSelector.cs
- FileInfo.cs
- Int16AnimationBase.cs
- AuthenticationSection.cs
- TargetPerspective.cs
- CannotUnloadAppDomainException.cs
- AddInDeploymentState.cs
- DirectoryGroupQuery.cs
- HtmlInputReset.cs
- XmlConvert.cs
- Stacktrace.cs
- DbMetaDataColumnNames.cs
- TdsParserStaticMethods.cs
- FixedNode.cs
- NavigationProperty.cs
- regiisutil.cs
- LoginAutoFormat.cs
- MDIWindowDialog.cs
- XmlNamedNodeMap.cs
- Section.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- LinkDesigner.cs
- DesignTimeTemplateParser.cs
- SqlClientMetaDataCollectionNames.cs
- ContractsBCL.cs
- TemplateField.cs
- ElementInit.cs
- DecimalStorage.cs
- PngBitmapEncoder.cs
- GenericAuthenticationEventArgs.cs
- Image.cs
- FileInfo.cs
- DrawingContextDrawingContextWalker.cs
- LocalizeDesigner.cs
- PropertyTab.cs
- PeerMaintainer.cs
- RepeatButtonAutomationPeer.cs
- DynamicVirtualDiscoSearcher.cs
- OutputScopeManager.cs
- XmlAtomicValue.cs
- WebPartMenu.cs
- XmlNotation.cs
- ContentHostHelper.cs
- DebugHandleTracker.cs
- ScriptingRoleServiceSection.cs
- WebEvents.cs
- IPeerNeighbor.cs
- Int64.cs
- UrlMappingsModule.cs
- TextProviderWrapper.cs