Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / SqlClient / SqlGen / SymbolPair.cs / 1305376 / SymbolPair.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Data.SqlClient; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees; namespace System.Data.SqlClient.SqlGen { ////// The SymbolPair exists to solve the record flattening problem. /// class SymbolPair : ISqlFragment { public Symbol Source; public Symbol Column; public SymbolPair(Symbol source, Symbol column) { this.Source = source; this.Column = column; } #region ISqlFragment Members public void WriteSql(SqlWriter writer, SqlGenerator sqlGenerator) { // Symbol pair should never be part of a SqlBuilder. Debug.Assert(false); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- ///// Consider a property expression D(v, "j3.j2.j1.a.x") /// where v is a VarRef, j1, j2, j3 are joins, a is an extent and x is a columns. /// This has to be translated eventually into {j'}.{x'} /// /// The source field represents the outermost SqlStatement representing a join /// expression (say j2) - this is always a Join symbol. /// /// The column field keeps moving from one join symbol to the next, until it /// stops at a non-join symbol. /// /// This is returned by , /// but never makes it into a SqlBuilder. /// // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Data.SqlClient; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees; namespace System.Data.SqlClient.SqlGen { ////// The SymbolPair exists to solve the record flattening problem. /// class SymbolPair : ISqlFragment { public Symbol Source; public Symbol Column; public SymbolPair(Symbol source, Symbol column) { this.Source = source; this.Column = column; } #region ISqlFragment Members public void WriteSql(SqlWriter writer, SqlGenerator sqlGenerator) { // Symbol pair should never be part of a SqlBuilder. Debug.Assert(false); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Consider a property expression D(v, "j3.j2.j1.a.x") /// where v is a VarRef, j1, j2, j3 are joins, a is an extent and x is a columns. /// This has to be translated eventually into {j'}.{x'} /// /// The source field represents the outermost SqlStatement representing a join /// expression (say j2) - this is always a Join symbol. /// /// The column field keeps moving from one join symbol to the next, until it /// stops at a non-join symbol. /// /// This is returned by , /// but never makes it into a SqlBuilder. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientClassGenerator.cs
- UntypedNullExpression.cs
- ReadOnlyDictionary.cs
- CompositeCollectionView.cs
- SessionChannels.cs
- UnsafeNativeMethodsPenimc.cs
- XmlSerializerSection.cs
- ColorComboBox.cs
- CharStorage.cs
- CreateParams.cs
- ImageAttributes.cs
- FilterQuery.cs
- FtpWebResponse.cs
- TextServicesLoader.cs
- CodeCastExpression.cs
- HealthMonitoringSectionHelper.cs
- SQLResource.cs
- Baml2006Reader.cs
- TextTreeInsertUndoUnit.cs
- StringDictionary.cs
- WebUtil.cs
- FontStretch.cs
- DynamicControlParameter.cs
- Main.cs
- future.cs
- RightsManagementEncryptionTransform.cs
- EndpointDiscoveryMetadata.cs
- NeutralResourcesLanguageAttribute.cs
- DataServiceHostFactory.cs
- CultureTable.cs
- SqlResolver.cs
- XmlSortKeyAccumulator.cs
- XmlDataSourceNodeDescriptor.cs
- CompilerInfo.cs
- DbConnectionInternal.cs
- PrintDocument.cs
- DeclarationUpdate.cs
- WebBrowser.cs
- XmlNamespaceMappingCollection.cs
- QuaternionIndependentAnimationStorage.cs
- KeyValuePairs.cs
- DataTableCollection.cs
- _SslSessionsCache.cs
- DocumentAutomationPeer.cs
- RecommendedAsConfigurableAttribute.cs
- CodeExpressionCollection.cs
- NamespaceInfo.cs
- CustomValidator.cs
- ActivatableWorkflowsQueryResult.cs
- LockedActivityGlyph.cs
- SystemResourceKey.cs
- XmlSchemaInclude.cs
- SelectionListDesigner.cs
- GroupBoxRenderer.cs
- WindowsGraphics.cs
- Viewport3DAutomationPeer.cs
- Debug.cs
- X509Certificate.cs
- Assembly.cs
- CannotUnloadAppDomainException.cs
- CfgParser.cs
- FileRecordSequence.cs
- SafeSecurityHelper.cs
- ByteStreamBufferedMessageData.cs
- DesignTimeSiteMapProvider.cs
- SqlBinder.cs
- AttributeAction.cs
- ServiceContractGenerationContext.cs
- Control.cs
- RecognizedAudio.cs
- DataGridView.cs
- WebPartMenuStyle.cs
- ConfigurationManagerInternal.cs
- Int64AnimationBase.cs
- DataPager.cs
- EntitySetRetriever.cs
- ConcurrentQueue.cs
- InfiniteIntConverter.cs
- Stylesheet.cs
- RotateTransform.cs
- _NegoStream.cs
- SerializationInfo.cs
- XsdDateTime.cs
- WorkflowRuntimeServiceElement.cs
- MetadataPropertyvalue.cs
- ErrorFormatterPage.cs
- ParseElementCollection.cs
- COMException.cs
- PageCache.cs
- TaskFormBase.cs
- GridViewPageEventArgs.cs
- ToolTip.cs
- TableColumn.cs
- ToolStripSplitStackLayout.cs
- XmlDataFileEditor.cs
- DataPager.cs
- OSFeature.cs
- ValueUtilsSmi.cs
- CustomTypeDescriptor.cs
- ListBindingHelper.cs