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
- ThreadStartException.cs
- HttpHandler.cs
- SecurityTokenParametersEnumerable.cs
- DataSourceXmlTextReader.cs
- ButtonChrome.cs
- Win32Exception.cs
- WebConfigurationHost.cs
- XmlNode.cs
- GroupBox.cs
- DayRenderEvent.cs
- RIPEMD160.cs
- BulletedListEventArgs.cs
- ManagementBaseObject.cs
- CommandLibraryHelper.cs
- ThicknessKeyFrameCollection.cs
- StylusDownEventArgs.cs
- designeractionbehavior.cs
- XmlWrappingReader.cs
- XmlSchemaDocumentation.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- StringComparer.cs
- ExtendedPropertyCollection.cs
- CollectionViewProxy.cs
- ProcessModelSection.cs
- WhitespaceRuleLookup.cs
- FindProgressChangedEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- AppDomainAttributes.cs
- SqlFacetAttribute.cs
- UnsafeNativeMethods.cs
- KeyValueConfigurationCollection.cs
- CasesDictionary.cs
- ByteBufferPool.cs
- HandlerBase.cs
- XmlNode.cs
- WorkflowServiceOperationListItem.cs
- DataKeyArray.cs
- EDesignUtil.cs
- MetadataArtifactLoaderFile.cs
- SiteMapNode.cs
- WebRequestModuleElementCollection.cs
- TraceEventCache.cs
- SmtpNtlmAuthenticationModule.cs
- SchemaEntity.cs
- XPathDocumentIterator.cs
- DataTable.cs
- StringUtil.cs
- ApplicationServiceHelper.cs
- xsdvalidator.cs
- LoadedOrUnloadedOperation.cs
- CacheRequest.cs
- PropertySourceInfo.cs
- SessionPageStateSection.cs
- SharedStatics.cs
- ReadOnlyObservableCollection.cs
- UITypeEditors.cs
- HtmlInputHidden.cs
- DesignerAdRotatorAdapter.cs
- Vector3DAnimationUsingKeyFrames.cs
- DurationConverter.cs
- TdsParser.cs
- ObjRef.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- LinkButton.cs
- KnownBoxes.cs
- XmlAutoDetectWriter.cs
- CodeStatement.cs
- DrawingContextDrawingContextWalker.cs
- SchemaCompiler.cs
- DragDrop.cs
- AutomationPeer.cs
- StorageAssociationSetMapping.cs
- SplineKeyFrames.cs
- WindowsClaimSet.cs
- SqlUserDefinedTypeAttribute.cs
- CollectionExtensions.cs
- ScriptingJsonSerializationSection.cs
- FixedSOMImage.cs
- ConfigurationException.cs
- dataobject.cs
- OdbcConnection.cs
- CompilerTypeWithParams.cs
- DrawingState.cs
- PageBuildProvider.cs
- WebCategoryAttribute.cs
- TypeNameParser.cs
- TextDecorationCollection.cs
- PasswordTextNavigator.cs
- MessageDecoder.cs
- Console.cs
- FreezableDefaultValueFactory.cs
- Rect.cs
- TreeNodeStyleCollection.cs
- ThemeDictionaryExtension.cs
- SQLInt16Storage.cs
- LineServicesRun.cs
- EUCJPEncoding.cs
- FlowchartDesigner.xaml.cs
- UpdatePanel.cs
- MenuTracker.cs