Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / MemberMaps.cs / 2 / MemberMaps.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Diagnostics; namespace System.Data.Mapping.ViewGeneration.Structures { // This class manages the different maps used in the view generation // process. These maps keep track of indexes of memberpaths, domains of // member paths, etc internal class MemberMaps { #region Constructors internal MemberMaps(SchemaContext schemaContext, MemberPathMapBase projectedSlotMap, MemberDomainMap queryDomainMap, MemberDomainMap updateDomainMap) { m_projectedSlotMap = projectedSlotMap; m_queryDomainMap = queryDomainMap; m_updateDomainMap = updateDomainMap; Debug.Assert(m_queryDomainMap != null); Debug.Assert(m_updateDomainMap != null); Debug.Assert(m_projectedSlotMap != null); m_schemaContext = schemaContext; } #endregion #region Fields private MemberPathMapBase m_projectedSlotMap; private MemberDomainMap m_queryDomainMap; private MemberDomainMap m_updateDomainMap; private SchemaContext m_schemaContext; #endregion #region Properties internal MemberPathMapBase ProjectedSlotMap { get { return m_projectedSlotMap;} } internal MemberDomainMap QueryDomainMap { get { return m_queryDomainMap;} } internal MemberDomainMap UpdateDomainMap { get { return m_updateDomainMap;} } internal MemberDomainMap RightDomainMap { get { return m_schemaContext.ViewTarget == ViewTarget.QueryView? m_updateDomainMap:m_queryDomainMap; } } internal MemberDomainMap LeftDomainMap { get { return m_schemaContext.ViewTarget == ViewTarget.QueryView? m_queryDomainMap: m_updateDomainMap; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Diagnostics; namespace System.Data.Mapping.ViewGeneration.Structures { // This class manages the different maps used in the view generation // process. These maps keep track of indexes of memberpaths, domains of // member paths, etc internal class MemberMaps { #region Constructors internal MemberMaps(SchemaContext schemaContext, MemberPathMapBase projectedSlotMap, MemberDomainMap queryDomainMap, MemberDomainMap updateDomainMap) { m_projectedSlotMap = projectedSlotMap; m_queryDomainMap = queryDomainMap; m_updateDomainMap = updateDomainMap; Debug.Assert(m_queryDomainMap != null); Debug.Assert(m_updateDomainMap != null); Debug.Assert(m_projectedSlotMap != null); m_schemaContext = schemaContext; } #endregion #region Fields private MemberPathMapBase m_projectedSlotMap; private MemberDomainMap m_queryDomainMap; private MemberDomainMap m_updateDomainMap; private SchemaContext m_schemaContext; #endregion #region Properties internal MemberPathMapBase ProjectedSlotMap { get { return m_projectedSlotMap;} } internal MemberDomainMap QueryDomainMap { get { return m_queryDomainMap;} } internal MemberDomainMap UpdateDomainMap { get { return m_updateDomainMap;} } internal MemberDomainMap RightDomainMap { get { return m_schemaContext.ViewTarget == ViewTarget.QueryView? m_updateDomainMap:m_queryDomainMap; } } internal MemberDomainMap LeftDomainMap { get { return m_schemaContext.ViewTarget == ViewTarget.QueryView? m_queryDomainMap: m_updateDomainMap; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceDisplayNameAttribute.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- RawMouseInputReport.cs
- ActiveDocumentEvent.cs
- _NestedMultipleAsyncResult.cs
- ScrollData.cs
- ImageSourceValueSerializer.cs
- DynamicILGenerator.cs
- ObjectDataSourceMethodEditor.cs
- XmlAggregates.cs
- IpcServerChannel.cs
- MsmqOutputSessionChannel.cs
- ICspAsymmetricAlgorithm.cs
- DbProviderFactories.cs
- WebControlParameterProxy.cs
- ClientRoleProvider.cs
- CodeMethodInvokeExpression.cs
- _ConnectOverlappedAsyncResult.cs
- PropertyTabAttribute.cs
- SatelliteContractVersionAttribute.cs
- ActivityUtilities.cs
- WindowsSlider.cs
- SamlAssertionKeyIdentifierClause.cs
- newinstructionaction.cs
- DateTimePicker.cs
- StreamReader.cs
- QueryNode.cs
- BufferedGraphicsManager.cs
- HealthMonitoringSection.cs
- ExceptionHandlers.cs
- AssemblyFilter.cs
- controlskin.cs
- VsPropertyGrid.cs
- basecomparevalidator.cs
- regiisutil.cs
- ClientRequest.cs
- RecipientInfo.cs
- ValidationSummary.cs
- ReadingWritingEntityEventArgs.cs
- Geometry3D.cs
- IfAction.cs
- ClaimSet.cs
- UIElement.cs
- XsltFunctions.cs
- TableColumn.cs
- Zone.cs
- FusionWrap.cs
- HttpModuleActionCollection.cs
- NavigateEvent.cs
- Identifier.cs
- CodeTypeParameterCollection.cs
- EnlistmentState.cs
- DataServiceQuery.cs
- SchemaElementLookUpTableEnumerator.cs
- _LocalDataStore.cs
- CachedPathData.cs
- SqlDataSourceSummaryPanel.cs
- AnnotationStore.cs
- XmlSchemaSimpleContent.cs
- UpdateCommandGenerator.cs
- CodePageUtils.cs
- ResolvedKeyFrameEntry.cs
- InvokeGenerator.cs
- ItemAutomationPeer.cs
- TabletDevice.cs
- CommandHelper.cs
- X509Certificate2Collection.cs
- ControlParser.cs
- WebPartConnectionsDisconnectVerb.cs
- SymbolTable.cs
- XamlDesignerSerializationManager.cs
- ExtendedProperty.cs
- TableDetailsCollection.cs
- RoutedEventArgs.cs
- cookieexception.cs
- WebGetAttribute.cs
- LineGeometry.cs
- TextAutomationPeer.cs
- MainMenu.cs
- SspiSecurityTokenParameters.cs
- HierarchicalDataTemplate.cs
- ViewStateAttachedPropertyFeature.cs
- BatchParser.cs
- UIElement3DAutomationPeer.cs
- BitmapEffect.cs
- FixedDocumentPaginator.cs
- ZipIOBlockManager.cs
- ISAPIWorkerRequest.cs
- ConfigurationSettings.cs
- SqlNamer.cs
- InstanceNotReadyException.cs
- ExtendedPropertyDescriptor.cs
- streamingZipPartStream.cs
- XmlSchemaSubstitutionGroup.cs
- ResourceDisplayNameAttribute.cs
- SwitchExpression.cs
- AsyncContentLoadedEventArgs.cs
- SharedUtils.cs
- ColumnTypeConverter.cs
- ActivityDesignerResources.cs