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
- PartitionerStatic.cs
- ServiceModelExtensionElement.cs
- WorkflowViewStateService.cs
- AnimatedTypeHelpers.cs
- CompoundFileDeflateTransform.cs
- CatalogZoneAutoFormat.cs
- ReachSerializerAsync.cs
- SmtpLoginAuthenticationModule.cs
- MenuAdapter.cs
- LoopExpression.cs
- MasterPageParser.cs
- ImageAttributes.cs
- SectionRecord.cs
- WindowVisualStateTracker.cs
- FileDialogCustomPlace.cs
- RoleService.cs
- Formatter.cs
- HtmlFormWrapper.cs
- TypeUtil.cs
- DataTransferEventArgs.cs
- LineServices.cs
- CqlLexerHelpers.cs
- GeometryGroup.cs
- RolePrincipal.cs
- XmlReturnReader.cs
- TaskForm.cs
- ColorDialog.cs
- SplayTreeNode.cs
- RSAOAEPKeyExchangeFormatter.cs
- DesignerActionUI.cs
- MessagePropertyAttribute.cs
- XmlNodeList.cs
- HtmlTableCell.cs
- PenThread.cs
- PageThemeCodeDomTreeGenerator.cs
- SqlRemoveConstantOrderBy.cs
- ListViewDeletedEventArgs.cs
- GenericNameHandler.cs
- StrongName.cs
- FigureParagraph.cs
- XmlNamespaceMapping.cs
- InputProcessorProfiles.cs
- ConstructorExpr.cs
- PerformanceCounters.cs
- TreePrinter.cs
- AppManager.cs
- MaskDescriptors.cs
- CompletedAsyncResult.cs
- AnnotationResourceCollection.cs
- AuthenticationSchemesHelper.cs
- DefaultPropertyAttribute.cs
- DelimitedListTraceListener.cs
- ListViewDeletedEventArgs.cs
- Quad.cs
- Debug.cs
- SkinIDTypeConverter.cs
- Double.cs
- UnconditionalPolicy.cs
- SqlClientMetaDataCollectionNames.cs
- CoreSwitches.cs
- DataListItemEventArgs.cs
- CodeLabeledStatement.cs
- Point4D.cs
- SQLRoleProvider.cs
- Win32SafeHandles.cs
- SecurityMessageProperty.cs
- FlowLayoutPanel.cs
- ListBase.cs
- DispatchWrapper.cs
- SmtpDateTime.cs
- Quaternion.cs
- Main.cs
- LingerOption.cs
- DebugView.cs
- ByteConverter.cs
- MetabaseServerConfig.cs
- StoreAnnotationsMap.cs
- CommandField.cs
- UIElementParagraph.cs
- SqlRowUpdatedEvent.cs
- FormViewUpdateEventArgs.cs
- SystemDiagnosticsSection.cs
- ContextMenu.cs
- ItemList.cs
- RuntimeIdentifierPropertyAttribute.cs
- LocalizableAttribute.cs
- AccessorTable.cs
- XpsS0ValidatingLoader.cs
- StringUtil.cs
- HandlerMappingMemo.cs
- HostedHttpTransportManager.cs
- FixedDSBuilder.cs
- SamlSubject.cs
- CommandField.cs
- SpellerHighlightLayer.cs
- BamlTreeNode.cs
- Message.cs
- SqlParameterizer.cs
- DataGridRelationshipRow.cs
- SiteMembershipCondition.cs