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
- HttpContext.cs
- DbExpressionBuilder.cs
- WebAdminConfigurationHelper.cs
- LoginNameDesigner.cs
- MessageQueueCriteria.cs
- HistoryEventArgs.cs
- BindingValueChangedEventArgs.cs
- Pkcs7Recipient.cs
- SerialPinChanges.cs
- CultureMapper.cs
- ExpressionNode.cs
- LZCodec.cs
- SingleSelectRootGridEntry.cs
- IdnMapping.cs
- Propagator.cs
- WinCategoryAttribute.cs
- EditingCoordinator.cs
- SelectorItemAutomationPeer.cs
- WrapperEqualityComparer.cs
- CreateRefExpr.cs
- EnumType.cs
- XmlSchemaDatatype.cs
- IPAddressCollection.cs
- MenuCommand.cs
- TcpServerChannel.cs
- SafeNativeMethods.cs
- HasCopySemanticsAttribute.cs
- Bezier.cs
- AttributeSetAction.cs
- Privilege.cs
- BamlResourceDeserializer.cs
- XmlUnspecifiedAttribute.cs
- StaticSiteMapProvider.cs
- CapabilitiesSection.cs
- User.cs
- metadatamappinghashervisitor.cs
- XMLUtil.cs
- MemoryPressure.cs
- FormViewUpdateEventArgs.cs
- StructuredType.cs
- webproxy.cs
- ConfigXmlReader.cs
- PauseStoryboard.cs
- MasterPageCodeDomTreeGenerator.cs
- XamlFxTrace.cs
- IsolationInterop.cs
- MonthChangedEventArgs.cs
- MatchAttribute.cs
- SpecialNameAttribute.cs
- PrivacyNoticeElement.cs
- OutputCacheSection.cs
- GCHandleCookieTable.cs
- IPAddressCollection.cs
- ControlAdapter.cs
- PartManifestEntry.cs
- FontStretchConverter.cs
- TemplateNameScope.cs
- VirtualPathUtility.cs
- Renderer.cs
- DataConnectionHelper.cs
- CodeStatementCollection.cs
- Misc.cs
- SafeNativeMethods.cs
- AssociatedControlConverter.cs
- CompilerLocalReference.cs
- XmlImplementation.cs
- WaitHandleCannotBeOpenedException.cs
- QilLiteral.cs
- DataComponentMethodGenerator.cs
- DataGridViewMethods.cs
- Rect3DValueSerializer.cs
- CoreSwitches.cs
- ImageMap.cs
- ListViewTableCell.cs
- Point3D.cs
- ToolStripSeparatorRenderEventArgs.cs
- _SslStream.cs
- UTF8Encoding.cs
- Rect3DConverter.cs
- TcpStreams.cs
- ImpersonateTokenRef.cs
- InvalidCommandTreeException.cs
- TraceContextRecord.cs
- _AutoWebProxyScriptWrapper.cs
- ListViewDesigner.cs
- FontUnit.cs
- NamedPermissionSet.cs
- InkPresenterAutomationPeer.cs
- SystemThemeKey.cs
- IProducerConsumerCollection.cs
- ConnectionStringsExpressionBuilder.cs
- Point3DKeyFrameCollection.cs
- ServiceNameElementCollection.cs
- QueryAsyncResult.cs
- WebPartRestoreVerb.cs
- RNGCryptoServiceProvider.cs
- SourceItem.cs
- CodeConditionStatement.cs
- Point.cs
- TextBoxLine.cs