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
- Inline.cs
- NullToBooleanConverter.cs
- ScriptManagerProxy.cs
- XmlCountingReader.cs
- HtmlInputFile.cs
- IndicFontClient.cs
- PackagingUtilities.cs
- OperatingSystem.cs
- SqlAliasesReferenced.cs
- CodeMemberEvent.cs
- TextParagraph.cs
- RelationshipEnd.cs
- DataTemplate.cs
- ExeConfigurationFileMap.cs
- ServerType.cs
- HealthMonitoringSectionHelper.cs
- UIElement3D.cs
- ValueUnavailableException.cs
- CommonObjectSecurity.cs
- ValidateNames.cs
- RoleManagerSection.cs
- FloaterParaClient.cs
- LeaseManager.cs
- SQLSingleStorage.cs
- AttributeUsageAttribute.cs
- QilTypeChecker.cs
- SQLBinaryStorage.cs
- ComponentChangingEvent.cs
- TextSelectionHelper.cs
- CommandHelpers.cs
- LocationSectionRecord.cs
- HtmlEmptyTagControlBuilder.cs
- GreenMethods.cs
- DateTime.cs
- FindProgressChangedEventArgs.cs
- hresults.cs
- WmpBitmapDecoder.cs
- StreamAsIStream.cs
- Variant.cs
- CommandConverter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DataGridViewCellValueEventArgs.cs
- EditorPart.cs
- TrustManager.cs
- SafeHandle.cs
- CustomAttributeFormatException.cs
- SqlServer2KCompatibilityAnnotation.cs
- Environment.cs
- MaskedTextBoxDesignerActionList.cs
- ToolStripSystemRenderer.cs
- ChtmlLinkAdapter.cs
- ModelUIElement3D.cs
- XsltArgumentList.cs
- Missing.cs
- TextTreeExtractElementUndoUnit.cs
- MetadataWorkspace.cs
- Base64Decoder.cs
- Polygon.cs
- CursorConverter.cs
- ControllableStoryboardAction.cs
- TextTreePropertyUndoUnit.cs
- PeerEndPoint.cs
- DataGridViewLayoutData.cs
- NameValuePermission.cs
- BackStopAuthenticationModule.cs
- SSmlParser.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Component.cs
- NamespaceInfo.cs
- PolicyException.cs
- EdmItemCollection.OcAssemblyCache.cs
- InvalidCastException.cs
- Table.cs
- WindowsScroll.cs
- StringTraceRecord.cs
- StrokeFIndices.cs
- GroupItem.cs
- ConstraintEnumerator.cs
- HttpConfigurationContext.cs
- WebPartConnectionCollection.cs
- SystemResources.cs
- TaskFileService.cs
- TypefaceMetricsCache.cs
- HostingPreferredMapPath.cs
- EventSetterHandlerConverter.cs
- XhtmlBasicListAdapter.cs
- infer.cs
- NativeCompoundFileAPIs.cs
- Html32TextWriter.cs
- DataSourceSelectArguments.cs
- StrokeNodeData.cs
- ValidatorCompatibilityHelper.cs
- CommonDialog.cs
- Int32Animation.cs
- SponsorHelper.cs
- IPCCacheManager.cs
- HtmlShimManager.cs
- SortDescription.cs
- AppSettings.cs
- XmlWrappingWriter.cs