Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 2 / CaseStatementSlot.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 CaseStatementSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementSlot(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 CaseStatementSlot(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 CaseStatementSlot : ProjectedSlot { #region Constructor // effects: Creates a slot for statement internal CaseStatementSlot(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 CaseStatementSlot(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
- RoutedPropertyChangedEventArgs.cs
- WmlCommandAdapter.cs
- ListBox.cs
- ImageBrush.cs
- _NetworkingPerfCounters.cs
- BindingListCollectionView.cs
- OneOfConst.cs
- ToolStripTextBox.cs
- Rijndael.cs
- HScrollProperties.cs
- StreamingContext.cs
- FieldAccessException.cs
- StrongNameMembershipCondition.cs
- IndexedSelectQueryOperator.cs
- IssuedTokensHeader.cs
- QilInvokeLateBound.cs
- NumericUpDownAccelerationCollection.cs
- FolderBrowserDialog.cs
- Configuration.cs
- SuppressMergeCheckAttribute.cs
- FormsAuthentication.cs
- ListViewUpdateEventArgs.cs
- hresults.cs
- DetailsViewPageEventArgs.cs
- ChtmlTextWriter.cs
- SqlDataSourceCache.cs
- ReceiveMessageRecord.cs
- SmtpCommands.cs
- DrawingAttributesDefaultValueFactory.cs
- ResourceKey.cs
- SecurityRuntime.cs
- ProtocolsConfiguration.cs
- SelectedGridItemChangedEvent.cs
- ADRoleFactory.cs
- SizeAnimationUsingKeyFrames.cs
- TextElement.cs
- X509CertificateEndpointIdentity.cs
- UdpReplyToBehavior.cs
- UInt64Converter.cs
- ListDataBindEventArgs.cs
- RemoteCryptoSignHashRequest.cs
- OdbcError.cs
- ResolvedKeyFrameEntry.cs
- WpfGeneratedKnownTypes.cs
- SiteOfOriginPart.cs
- DesignerGenericWebPart.cs
- ChildrenQuery.cs
- Win32Exception.cs
- QilValidationVisitor.cs
- ValidationContext.cs
- StrokeNodeOperations.cs
- ItemCheckedEvent.cs
- AuthorizationSection.cs
- TemplateField.cs
- TreeViewEvent.cs
- DataGridViewRowsAddedEventArgs.cs
- SafeLocalMemHandle.cs
- precedingsibling.cs
- OdbcInfoMessageEvent.cs
- LinkConverter.cs
- mansign.cs
- MarkerProperties.cs
- CaseInsensitiveComparer.cs
- CrossAppDomainChannel.cs
- CryptoStream.cs
- TaskFactory.cs
- TemplateNameScope.cs
- DependencyPropertyDescriptor.cs
- mediaeventshelper.cs
- HierarchicalDataSourceControl.cs
- SwitchAttribute.cs
- StorageMappingItemCollection.cs
- RtfToXamlLexer.cs
- FrameworkContentElement.cs
- WebPartDeleteVerb.cs
- TextEffectResolver.cs
- ControlCommandSet.cs
- _NestedMultipleAsyncResult.cs
- FormattedText.cs
- RenderOptions.cs
- ConnectionOrientedTransportChannelListener.cs
- EntitySetBase.cs
- CommandDesigner.cs
- IgnoreSection.cs
- AdornedElementPlaceholder.cs
- ErasingStroke.cs
- DataBoundControl.cs
- DataGridViewTextBoxEditingControl.cs
- BufferAllocator.cs
- TemplateParser.cs
- _LocalDataStoreMgr.cs
- WorkflowPageSetupDialog.cs
- TableLayoutStyleCollection.cs
- Help.cs
- AmbientValueAttribute.cs
- CqlQuery.cs
- ConvertEvent.cs
- TransformCollection.cs
- XmlAnyElementAttributes.cs
- DataServiceExpressionVisitor.cs