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
- EFColumnProvider.cs
- _SpnDictionary.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- ProfileEventArgs.cs
- XmlSchemaCompilationSettings.cs
- StatusBarAutomationPeer.cs
- FilterRepeater.cs
- Buffer.cs
- ApplicationFileParser.cs
- WindowsSidIdentity.cs
- IdnElement.cs
- RoutedCommand.cs
- DataGridRow.cs
- ListBoxChrome.cs
- Comparer.cs
- WindowsPen.cs
- UnsafeNativeMethods.cs
- VirtualizingStackPanel.cs
- XmlQualifiedNameTest.cs
- ListQueryResults.cs
- CompModSwitches.cs
- Menu.cs
- ImageSource.cs
- CqlBlock.cs
- CompModSwitches.cs
- LicFileLicenseProvider.cs
- EdmSchemaError.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AttributeSetAction.cs
- CultureInfoConverter.cs
- ObjectHelper.cs
- CompatibleIComparer.cs
- SecurityElement.cs
- StringInfo.cs
- ProcessModelSection.cs
- BufferedGenericXmlSecurityToken.cs
- CatalogZone.cs
- CustomCredentialPolicy.cs
- FormsAuthenticationUser.cs
- FactoryMaker.cs
- SpeakInfo.cs
- UniqueID.cs
- BevelBitmapEffect.cs
- PropertyFilter.cs
- _ConnectionGroup.cs
- BasicExpressionVisitor.cs
- NamedPipeHostedTransportConfiguration.cs
- OdbcReferenceCollection.cs
- EventListener.cs
- DoubleAnimationUsingKeyFrames.cs
- TranslateTransform.cs
- ScrollData.cs
- LinkTarget.cs
- Version.cs
- SystemThemeKey.cs
- RepeatInfo.cs
- UITypeEditor.cs
- UnsafeNativeMethods.cs
- DocumentationServerProtocol.cs
- NativeCppClassAttribute.cs
- EncodingInfo.cs
- WebBaseEventKeyComparer.cs
- BuildResult.cs
- WebPartVerbsEventArgs.cs
- SmtpMail.cs
- RequestTimeoutManager.cs
- SqlTopReducer.cs
- ColumnMapVisitor.cs
- PaperSize.cs
- PolyBezierSegment.cs
- WebException.cs
- RijndaelManaged.cs
- ObservableCollectionDefaultValueFactory.cs
- ConfigXmlSignificantWhitespace.cs
- RegularExpressionValidator.cs
- ItemsChangedEventArgs.cs
- SpeechRecognizer.cs
- TdsValueSetter.cs
- UserThread.cs
- SaveWorkflowAsyncResult.cs
- WrappedKeySecurityToken.cs
- ComAdminInterfaces.cs
- ReadOnlyTernaryTree.cs
- BooleanFacetDescriptionElement.cs
- SequenceFullException.cs
- _ProxyRegBlob.cs
- XDRSchema.cs
- PropertyGridEditorPart.cs
- Int32Rect.cs
- MappingItemCollection.cs
- SqlErrorCollection.cs
- RequestCacheEntry.cs
- WebServiceResponseDesigner.cs
- SqlTriggerAttribute.cs
- XmlSchemaAppInfo.cs
- TextViewSelectionProcessor.cs
- PageBreakRecord.cs
- HtmlInputReset.cs
- Rect.cs
- ApplicationServiceManager.cs