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
- GridItemCollection.cs
- ConfigXmlComment.cs
- OrderingQueryOperator.cs
- ObjectStateManagerMetadata.cs
- EntityRecordInfo.cs
- PolyBezierSegmentFigureLogic.cs
- FunctionQuery.cs
- JapaneseCalendar.cs
- PreProcessInputEventArgs.cs
- DragEvent.cs
- BitStream.cs
- ExpressionBindingsDialog.cs
- newinstructionaction.cs
- XPathBinder.cs
- CompilationAssemblyInstallComponent.cs
- RegexTypeEditor.cs
- _NTAuthentication.cs
- DataQuery.cs
- TablePattern.cs
- LoginStatusDesigner.cs
- AuthStoreRoleProvider.cs
- MissingMemberException.cs
- CodeGroup.cs
- odbcmetadatafactory.cs
- TextViewDesigner.cs
- Bidi.cs
- MemoryFailPoint.cs
- AggregationMinMaxHelpers.cs
- ApplicationProxyInternal.cs
- LocatorPartList.cs
- AspProxy.cs
- TimeZone.cs
- HtmlElementEventArgs.cs
- ThaiBuddhistCalendar.cs
- TTSEngineTypes.cs
- GenericTypeParameterBuilder.cs
- Section.cs
- MarginCollapsingState.cs
- Translator.cs
- GraphicsContext.cs
- MemoryFailPoint.cs
- PerCallInstanceContextProvider.cs
- SubMenuStyle.cs
- LeafCellTreeNode.cs
- RoleGroupCollection.cs
- HandleCollector.cs
- Underline.cs
- Marshal.cs
- UnsafeNativeMethods.cs
- LinqDataSourceDisposeEventArgs.cs
- IWorkflowDebuggerService.cs
- BuildProviderCollection.cs
- FilterableData.cs
- DataGridLength.cs
- KnownBoxes.cs
- XmlToDatasetMap.cs
- SortQuery.cs
- loginstatus.cs
- HttpCookieCollection.cs
- TemplateControl.cs
- TextDecoration.cs
- AspCompat.cs
- CompareInfo.cs
- PropertyManager.cs
- Context.cs
- PriorityQueue.cs
- HostVisual.cs
- DocumentSequenceHighlightLayer.cs
- NullableBoolConverter.cs
- SqlRewriteScalarSubqueries.cs
- WebPartConnectionsEventArgs.cs
- Sequence.cs
- DecoderExceptionFallback.cs
- DataSourceProvider.cs
- TextEndOfLine.cs
- NoneExcludedImageIndexConverter.cs
- Pen.cs
- ADMembershipUser.cs
- TimeoutValidationAttribute.cs
- EntityDataSource.cs
- EdmItemCollection.cs
- OneOf.cs
- CallbackException.cs
- DESCryptoServiceProvider.cs
- XmlElementAttributes.cs
- ContentPropertyAttribute.cs
- TypeConverterBase.cs
- PatternMatcher.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- TypeResolvingOptionsAttribute.cs
- SizeIndependentAnimationStorage.cs
- CollectionContainer.cs
- ThemeInfoAttribute.cs
- InstanceContextManager.cs
- DataServiceHostWrapper.cs
- CancellationTokenSource.cs
- Point4D.cs
- DataControlFieldCollection.cs
- SQLBytes.cs
- ImageDrawing.cs