Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / CaseStatementSlot.cs / 1 / 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
- WindowsListViewGroup.cs
- Scheduling.cs
- ReverseInheritProperty.cs
- TypeExtension.cs
- TransformDescriptor.cs
- FastPropertyAccessor.cs
- SystemColorTracker.cs
- TextRangeAdaptor.cs
- PointValueSerializer.cs
- LogLogRecordHeader.cs
- DependsOnAttribute.cs
- ObjectItemAssemblyLoader.cs
- HyperLinkStyle.cs
- XmlCDATASection.cs
- CompiledQuery.cs
- ParameterToken.cs
- DefaultValueTypeConverter.cs
- Helpers.cs
- DesignerToolStripControlHost.cs
- CodeTypeReference.cs
- CodeLinePragma.cs
- ApplicationSecurityInfo.cs
- ThreadPool.cs
- StringBlob.cs
- DependencyObjectPropertyDescriptor.cs
- SymmetricKeyWrap.cs
- BaseDataListDesigner.cs
- ILGenerator.cs
- Clock.cs
- DeleteWorkflowOwnerCommand.cs
- HandleCollector.cs
- XPathCompileException.cs
- SafeSecurityHelper.cs
- InfoCardKeyedHashAlgorithm.cs
- ProxyManager.cs
- WebPartEditorApplyVerb.cs
- storepermissionattribute.cs
- NGCSerializerAsync.cs
- ConsoleCancelEventArgs.cs
- LogReserveAndAppendState.cs
- MergePropertyDescriptor.cs
- InternalConfigRoot.cs
- ErrorHandler.cs
- Solver.cs
- SafeCoTaskMem.cs
- MDIWindowDialog.cs
- ProviderConnectionPoint.cs
- WebPartConnection.cs
- BinHexDecoder.cs
- TypeExtensionConverter.cs
- LinearGradientBrush.cs
- SqlConnectionHelper.cs
- BitmapCacheBrush.cs
- DivideByZeroException.cs
- Stylesheet.cs
- StackSpiller.Temps.cs
- EntityStoreSchemaFilterEntry.cs
- TraceUtility.cs
- ToggleProviderWrapper.cs
- odbcmetadatacollectionnames.cs
- PageParser.cs
- ServiceAppDomainAssociationProvider.cs
- RegexStringValidator.cs
- ConfigurationSection.cs
- EntityDataSourceViewSchema.cs
- Dynamic.cs
- DockingAttribute.cs
- HttpHandlerActionCollection.cs
- OracleColumn.cs
- BufferedStream.cs
- AssociationEndMember.cs
- TableItemPattern.cs
- SystemException.cs
- CheckBoxField.cs
- TransformationRules.cs
- WindowsIdentity.cs
- BaseComponentEditor.cs
- Vector3DConverter.cs
- SecurityElement.cs
- CompiledAction.cs
- SoapEnumAttribute.cs
- CredentialCache.cs
- EntityModelSchemaGenerator.cs
- XmlEntity.cs
- CounterSet.cs
- Image.cs
- webclient.cs
- DnsEndPoint.cs
- AncestorChangedEventArgs.cs
- Calendar.cs
- FacetChecker.cs
- ConfigXmlCDataSection.cs
- CompilationAssemblyInstallComponent.cs
- XmlHierarchicalEnumerable.cs
- InstanceData.cs
- Internal.cs
- DbProviderManifest.cs
- ListCommandEventArgs.cs
- RuleSettingsCollection.cs
- TextBlockAutomationPeer.cs