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, IEnumerable withStatements)
{
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
- TrustLevel.cs
- ConfigXmlSignificantWhitespace.cs
- ArraySortHelper.cs
- ScriptModule.cs
- ChannelManager.cs
- PermissionSetEnumerator.cs
- CfgParser.cs
- HyperLinkField.cs
- SqlNodeAnnotation.cs
- MergeFailedEvent.cs
- EntityDataSourceMemberPath.cs
- RichTextBoxAutomationPeer.cs
- WebPartDescriptionCollection.cs
- Perspective.cs
- PathNode.cs
- RoutingExtension.cs
- AssemblyBuilder.cs
- DataServiceQueryProvider.cs
- UshortList2.cs
- AutomationProperties.cs
- Accessible.cs
- RewritingProcessor.cs
- HyperLinkDesigner.cs
- TranslateTransform3D.cs
- OrthographicCamera.cs
- BinHexEncoder.cs
- SequentialUshortCollection.cs
- FieldBuilder.cs
- SHA384.cs
- SettingsSection.cs
- NativeObjectSecurity.cs
- FileDialogCustomPlacesCollection.cs
- ValueType.cs
- KeyNotFoundException.cs
- WebPartTransformerCollection.cs
- SplitterEvent.cs
- LineVisual.cs
- HandlerBase.cs
- TriggerActionCollection.cs
- DurationConverter.cs
- DataGridViewCellValidatingEventArgs.cs
- PersonalizationEntry.cs
- DynamicRenderer.cs
- ChannelManager.cs
- EmptyControlCollection.cs
- SmiEventSink_Default.cs
- DbConvert.cs
- CredentialSelector.cs
- Light.cs
- DataPagerField.cs
- UnsafeNativeMethods.cs
- WebHttpBindingElement.cs
- ListViewUpdatedEventArgs.cs
- HasCopySemanticsAttribute.cs
- QueueTransferProtocol.cs
- XsltInput.cs
- TableCell.cs
- MediaContextNotificationWindow.cs
- XmlRawWriter.cs
- EventListener.cs
- ResourceDictionary.cs
- Table.cs
- shaper.cs
- ThicknessAnimationUsingKeyFrames.cs
- BufferModeSettings.cs
- DirtyTextRange.cs
- SelectionUIService.cs
- DataControlFieldCell.cs
- InfoCardProofToken.cs
- AttributeUsageAttribute.cs
- TimeoutHelper.cs
- ProvidePropertyAttribute.cs
- PropertyCollection.cs
- Encoding.cs
- X509WindowsSecurityToken.cs
- OracleRowUpdatingEventArgs.cs
- DocumentPage.cs
- Attributes.cs
- DataGridDetailsPresenter.cs
- DbMetaDataCollectionNames.cs
- SqlInternalConnectionTds.cs
- TextTreeFixupNode.cs
- WorkflowServiceBehavior.cs
- OpenFileDialog.cs
- ServiceOperation.cs
- StackBuilderSink.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- SafeBitVector32.cs
- PathGeometry.cs
- AttributeAction.cs
- ListBindableAttribute.cs
- Vector.cs
- QilLoop.cs
- WebBrowsableAttribute.cs
- PersonalizationDictionary.cs
- ArrayElementGridEntry.cs
- ScrollBarAutomationPeer.cs
- DocumentSchemaValidator.cs
- SkipStoryboardToFill.cs
- ClientCultureInfo.cs