Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- InvalidWMPVersionException.cs
- DeviceContext.cs
- XmlIncludeAttribute.cs
- RelationshipEndCollection.cs
- HttpListener.cs
- DesignerMetadata.cs
- EmptyStringExpandableObjectConverter.cs
- CancellationHandler.cs
- Accessible.cs
- CodeMemberMethod.cs
- InputBinder.cs
- ResizeGrip.cs
- Rules.cs
- ToolStripDesignerAvailabilityAttribute.cs
- KnownTypeAttribute.cs
- TreeNodeCollection.cs
- NodeLabelEditEvent.cs
- DataGridViewSortCompareEventArgs.cs
- DiscoveryDocumentSerializer.cs
- ParameterBuilder.cs
- NewExpression.cs
- ParameterDataSourceExpression.cs
- CheckedPointers.cs
- ZipIOExtraField.cs
- ContentDefinition.cs
- WebPartAddingEventArgs.cs
- SolidColorBrush.cs
- ContentFilePart.cs
- IsolatedStorageFilePermission.cs
- Point4DConverter.cs
- SolidColorBrush.cs
- State.cs
- UndirectedGraph.cs
- TemplateParser.cs
- CollectionTypeElement.cs
- DataGridRow.cs
- Decimal.cs
- PresentationAppDomainManager.cs
- DesignerDataParameter.cs
- cookie.cs
- DataRecordObjectView.cs
- Win32MouseDevice.cs
- Collection.cs
- BitmapPalette.cs
- ComponentResourceKey.cs
- HostExecutionContextManager.cs
- ParameterElement.cs
- FileDetails.cs
- Rect3DValueSerializer.cs
- XmlSerializerSection.cs
- MatchingStyle.cs
- LocalClientSecuritySettings.cs
- BamlWriter.cs
- HttpCacheVary.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ContextItemManager.cs
- DesignerSerializationVisibilityAttribute.cs
- WmlPanelAdapter.cs
- FakeModelPropertyImpl.cs
- MissingMemberException.cs
- TableLayoutRowStyleCollection.cs
- MimeBasePart.cs
- Trigger.cs
- HeaderedItemsControl.cs
- CustomSignedXml.cs
- DataServiceKeyAttribute.cs
- SafeCoTaskMem.cs
- ClientBuildManager.cs
- RoutingEndpointTrait.cs
- RunWorkerCompletedEventArgs.cs
- WebServiceResponse.cs
- SortedList.cs
- FilterableAttribute.cs
- DoWorkEventArgs.cs
- securitycriticaldataClass.cs
- VideoDrawing.cs
- SQLInt16.cs
- DrawingContextWalker.cs
- ToolStripRenderer.cs
- DocumentPaginator.cs
- MarkupProperty.cs
- MetadataPropertyCollection.cs
- CorePropertiesFilter.cs
- DayRenderEvent.cs
- SqlBooleanizer.cs
- AutomationPropertyInfo.cs
- LambdaCompiler.cs
- dataSvcMapFileLoader.cs
- Serializer.cs
- Literal.cs
- TemplateBindingExpression.cs
- AtomParser.cs
- HandlerFactoryCache.cs
- EmptyEnumerable.cs
- AdapterUtil.cs
- Assert.cs
- ContentWrapperAttribute.cs
- DocumentOrderQuery.cs
- StreamUpgradeInitiator.cs
- CroppedBitmap.cs