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
- PrintingPermission.cs
- validationstate.cs
- XamlWriter.cs
- SymbolTable.cs
- LocatorPartList.cs
- Console.cs
- ConsoleCancelEventArgs.cs
- GraphicsPathIterator.cs
- InertiaExpansionBehavior.cs
- RowCache.cs
- BamlLocalizer.cs
- AutoCompleteStringCollection.cs
- PathFigureCollection.cs
- InvalidDataContractException.cs
- ListViewItem.cs
- XsltInput.cs
- ExpressionTextBoxAutomationPeer.cs
- ObjectConverter.cs
- XMLSyntaxException.cs
- NavigationProperty.cs
- KeyValuePair.cs
- VirtualizingStackPanel.cs
- XslUrlEditor.cs
- Transform.cs
- ObjectPersistData.cs
- SchemaMapping.cs
- _LoggingObject.cs
- SqlEnums.cs
- MULTI_QI.cs
- MsmqChannelListenerBase.cs
- CellPartitioner.cs
- BasicCommandTreeVisitor.cs
- InternalBase.cs
- OdbcEnvironmentHandle.cs
- MobileResource.cs
- GroupLabel.cs
- DbConnectionFactory.cs
- PixelFormats.cs
- DefaultValueTypeConverter.cs
- PageFunction.cs
- DesignConnection.cs
- QilFactory.cs
- XmlSchemaComplexContentRestriction.cs
- BindingCollection.cs
- HttpRequestCacheValidator.cs
- SourceChangedEventArgs.cs
- WebPartDisplayModeEventArgs.cs
- Visual3DCollection.cs
- AddInAttribute.cs
- SecurityRuntime.cs
- TemplateControlBuildProvider.cs
- EntityDataSourceViewSchema.cs
- ClrPerspective.cs
- RTLAwareMessageBox.cs
- WebZoneDesigner.cs
- Attribute.cs
- Guid.cs
- ValidationPropertyAttribute.cs
- RelationshipDetailsCollection.cs
- OdbcReferenceCollection.cs
- RegisteredExpandoAttribute.cs
- TextReturnReader.cs
- autovalidator.cs
- Image.cs
- XmlElement.cs
- StaticExtension.cs
- IdentifierService.cs
- CodeTryCatchFinallyStatement.cs
- DeflateStream.cs
- OracleTransaction.cs
- PrimitiveCodeDomSerializer.cs
- ZoomPercentageConverter.cs
- VisualBrush.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridHelper.cs
- ConfigXmlSignificantWhitespace.cs
- NativeBuffer.cs
- NotImplementedException.cs
- SerializationInfoEnumerator.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DetailsViewPageEventArgs.cs
- PointCollection.cs
- X509ClientCertificateCredentialsElement.cs
- SiteMapPathDesigner.cs
- Thread.cs
- EncryptedKeyIdentifierClause.cs
- ILGenerator.cs
- ProfileService.cs
- MenuItemStyle.cs
- GradientStop.cs
- HMACSHA1.cs
- DataBindingHandlerAttribute.cs
- LambdaCompiler.Lambda.cs
- MultiBindingExpression.cs
- FrameworkElementFactoryMarkupObject.cs
- IPPacketInformation.cs
- CharEntityEncoderFallback.cs
- OleDbException.cs
- PrimitiveSchema.cs
- ImageListImageEditor.cs