Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TrustManagerPromptUI.cs
- SqlRecordBuffer.cs
- SecurityDocument.cs
- ISAPIRuntime.cs
- ProtocolsSection.cs
- _Rfc2616CacheValidators.cs
- GlyphRunDrawing.cs
- XmlSchemaInferenceException.cs
- LayoutTableCell.cs
- SqlLiftWhereClauses.cs
- VideoDrawing.cs
- XmlSerializerVersionAttribute.cs
- MediaEntryAttribute.cs
- SqlStatistics.cs
- HttpListenerContext.cs
- KnownTypeHelper.cs
- SizeValueSerializer.cs
- TextTreeExtractElementUndoUnit.cs
- DaylightTime.cs
- EdmFunctions.cs
- InkCanvasSelectionAdorner.cs
- Stream.cs
- WebBrowserContainer.cs
- Pkcs9Attribute.cs
- XamlReader.cs
- WindowsSolidBrush.cs
- StylusPointProperties.cs
- RowBinding.cs
- SqlDataSourceQueryEditorForm.cs
- HttpGetProtocolImporter.cs
- Tablet.cs
- ImageCodecInfoPrivate.cs
- ComponentRenameEvent.cs
- ValidationSummary.cs
- DrawListViewColumnHeaderEventArgs.cs
- UpdateRecord.cs
- ModuleElement.cs
- ScriptMethodAttribute.cs
- SemaphoreFullException.cs
- TextRunCache.cs
- RootAction.cs
- LocatorGroup.cs
- FutureFactory.cs
- BuildProvider.cs
- ModuleElement.cs
- FloaterParaClient.cs
- AutomationPatternInfo.cs
- ValidationError.cs
- WebDisplayNameAttribute.cs
- DocumentDesigner.cs
- CollectionEditor.cs
- XPathNodePointer.cs
- AppPool.cs
- Documentation.cs
- ActiveXSite.cs
- AnnotationHighlightLayer.cs
- COM2ExtendedUITypeEditor.cs
- IntSecurity.cs
- DesignerProperties.cs
- DataGridDetailsPresenterAutomationPeer.cs
- PrivilegeNotHeldException.cs
- AutoScrollHelper.cs
- Size.cs
- Material.cs
- XamlInterfaces.cs
- TdsParser.cs
- PolyBezierSegmentFigureLogic.cs
- HashRepartitionStream.cs
- GridView.cs
- SiteMapDataSourceView.cs
- FormatStringEditor.cs
- BuildResult.cs
- RequestResizeEvent.cs
- SspiSecurityTokenParameters.cs
- ColorAnimationUsingKeyFrames.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ConsumerConnectionPoint.cs
- WindowProviderWrapper.cs
- AvtEvent.cs
- VirtualPathProvider.cs
- NameValueSectionHandler.cs
- XmlCodeExporter.cs
- ImageClickEventArgs.cs
- ConnectionProviderAttribute.cs
- MappingSource.cs
- EntityProviderFactory.cs
- AttributeData.cs
- XamlPathDataSerializer.cs
- BamlWriter.cs
- TableItemPatternIdentifiers.cs
- PersonalizablePropertyEntry.cs
- EntityDataSourceViewSchema.cs
- SqlInternalConnection.cs
- BuildManagerHost.cs
- ListControlBoundActionList.cs
- ResourceDisplayNameAttribute.cs
- ToolStripDropTargetManager.cs
- FontClient.cs
- RewritingPass.cs
- CodeMemberProperty.cs