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
- ToolTipService.cs
- ToolStripDropDown.cs
- Exceptions.cs
- XamlDesignerSerializationManager.cs
- Speller.cs
- Matrix.cs
- DataGridItem.cs
- RegexGroup.cs
- DataShape.cs
- SqlDataSourceView.cs
- InputMethodStateTypeInfo.cs
- OutputCacheSettings.cs
- SafeReversePInvokeHandle.cs
- ApplicationManager.cs
- Size.cs
- HealthMonitoringSectionHelper.cs
- SymbolPair.cs
- ConfigurationPropertyCollection.cs
- DesignerForm.cs
- OdbcTransaction.cs
- SEHException.cs
- DataGridViewSortCompareEventArgs.cs
- HttpWebResponse.cs
- ResourceDictionaryCollection.cs
- DataGridViewRowHeaderCell.cs
- DataGridViewDataErrorEventArgs.cs
- ValidatedControlConverter.cs
- WsdlExporter.cs
- BrowserInteropHelper.cs
- ImageBrush.cs
- Polygon.cs
- DiscoveryDefaults.cs
- ScalarOps.cs
- HotSpotCollection.cs
- IssuedTokenServiceElement.cs
- DecimalStorage.cs
- FlatButtonAppearance.cs
- HandlerBase.cs
- BitmapInitialize.cs
- PackWebResponse.cs
- AnnotationObservableCollection.cs
- SmtpNetworkElement.cs
- CreateSequence.cs
- ValidatingReaderNodeData.cs
- SessionStateUtil.cs
- regiisutil.cs
- DragAssistanceManager.cs
- DataControlFieldCollection.cs
- GridLengthConverter.cs
- M3DUtil.cs
- webbrowsersite.cs
- TdsValueSetter.cs
- KeyPressEvent.cs
- Style.cs
- DataControlField.cs
- SystemSounds.cs
- DatagramAdapter.cs
- XmlAnyAttributeAttribute.cs
- DictationGrammar.cs
- ToolBarPanel.cs
- tibetanshape.cs
- UrlAuthFailedErrorFormatter.cs
- XmlUtil.cs
- StrongName.cs
- PathGradientBrush.cs
- ResourcePermissionBaseEntry.cs
- DelegateSerializationHolder.cs
- DataGridViewCheckBoxColumn.cs
- DataGridViewHitTestInfo.cs
- WebPartDisplayModeCollection.cs
- Geometry.cs
- SqlComparer.cs
- LocatorManager.cs
- EnumBuilder.cs
- ConnectionManagementElementCollection.cs
- PlanCompiler.cs
- OperationAbortedException.cs
- HttpInputStream.cs
- ChannelSinkStacks.cs
- COM2ColorConverter.cs
- RegisteredArrayDeclaration.cs
- PasswordBoxAutomationPeer.cs
- RawKeyboardInputReport.cs
- BinHexDecoder.cs
- DataControlFieldCell.cs
- COM2ColorConverter.cs
- TemplatedMailWebEventProvider.cs
- Validator.cs
- SplitterEvent.cs
- SystemNetworkInterface.cs
- SharedStatics.cs
- DirtyTextRange.cs
- FixedBufferAttribute.cs
- SplashScreen.cs
- TypeInitializationException.cs
- EncodingInfo.cs
- GatewayDefinition.cs
- BufferModesCollection.cs
- GuidelineCollection.cs
- Component.cs