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
- AppDomainFactory.cs
- Number.cs
- Token.cs
- XmlBindingWorker.cs
- HMACMD5.cs
- KeyboardDevice.cs
- XmlSerializationReader.cs
- Point3DAnimationUsingKeyFrames.cs
- DataSourceControl.cs
- OracleParameterBinding.cs
- SctClaimSerializer.cs
- MTConfigUtil.cs
- PaginationProgressEventArgs.cs
- CodeDirectiveCollection.cs
- GACIdentityPermission.cs
- CryptographicAttribute.cs
- SqlResolver.cs
- IdnElement.cs
- ResourceFallbackManager.cs
- TemplateControl.cs
- DataServiceRequest.cs
- SpellCheck.cs
- Overlapped.cs
- TextContainerChangeEventArgs.cs
- ShaderRenderModeValidation.cs
- StrokeCollectionConverter.cs
- JsonStringDataContract.cs
- ParamArrayAttribute.cs
- ManualResetEvent.cs
- SafeThreadHandle.cs
- Int32Rect.cs
- ConvertTextFrag.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlSchemaInclude.cs
- MatrixValueSerializer.cs
- UiaCoreProviderApi.cs
- ManagementInstaller.cs
- DataObject.cs
- ZipFileInfoCollection.cs
- WorkflowCommandExtensionItem.cs
- Executor.cs
- Tile.cs
- MenuItem.cs
- MetaType.cs
- FontStyles.cs
- ColorDialog.cs
- IImplicitResourceProvider.cs
- DataServiceHostFactory.cs
- SHA512.cs
- InstanceDataCollection.cs
- StringConcat.cs
- AppearanceEditorPart.cs
- PathGeometry.cs
- PropertyGridDesigner.cs
- ClientSponsor.cs
- RepeaterCommandEventArgs.cs
- ExtendedPropertyCollection.cs
- XmlEntityReference.cs
- CreationContext.cs
- HostedBindingBehavior.cs
- InputDevice.cs
- StreamInfo.cs
- DesignerCommandAdapter.cs
- GlyphElement.cs
- Lease.cs
- CodeComment.cs
- StatusBar.cs
- CatalogPartCollection.cs
- CacheModeConverter.cs
- SiteIdentityPermission.cs
- Comparer.cs
- IdnElement.cs
- EventLogLink.cs
- WorkflowServiceHost.cs
- AspNetRouteServiceHttpHandler.cs
- FontStyles.cs
- RecognizerInfo.cs
- cache.cs
- prefixendpointaddressmessagefilter.cs
- OraclePermissionAttribute.cs
- FixedFindEngine.cs
- _Semaphore.cs
- MultiBinding.cs
- EntityViewGenerationConstants.cs
- DeclarativeCatalogPartDesigner.cs
- MsmqMessageSerializationFormat.cs
- HtmlMeta.cs
- SqlAggregateChecker.cs
- AdornerLayer.cs
- OutputCacheSettingsSection.cs
- SystemException.cs
- OrthographicCamera.cs
- BindingCollection.cs
- HttpProtocolImporter.cs
- HostUtils.cs
- UnmanagedMarshal.cs
- FamilyCollection.cs
- RepeaterItemEventArgs.cs
- DependencyObjectType.cs
- PhonemeConverter.cs