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
- SerializationEventsCache.cs
- ImageEditor.cs
- UnsafeNativeMethods.cs
- TabletCollection.cs
- SendingRequestEventArgs.cs
- DataViewManager.cs
- TemplateFactory.cs
- GeometryModel3D.cs
- SendContent.cs
- LocationSectionRecord.cs
- DefaultAsyncDataDispatcher.cs
- ServerIdentity.cs
- ResourceExpression.cs
- DocumentPageView.cs
- IntellisenseTextBox.cs
- QueryStringConverter.cs
- FontFamily.cs
- FixedFlowMap.cs
- EncryptedKey.cs
- PageAction.cs
- DesignerView.cs
- DataGridViewColumnCollectionDialog.cs
- FlowDocumentPaginator.cs
- SqlProvider.cs
- XmlValidatingReaderImpl.cs
- AuthenticateEventArgs.cs
- X509SubjectKeyIdentifierClause.cs
- StructuredProperty.cs
- ImpersonationContext.cs
- ToolStripRenderEventArgs.cs
- HierarchicalDataSourceDesigner.cs
- Base64Encoder.cs
- EventWaitHandle.cs
- FileChangesMonitor.cs
- UIntPtr.cs
- OverlappedAsyncResult.cs
- _Events.cs
- ProxyHwnd.cs
- ValidatedControlConverter.cs
- ConnectionPoint.cs
- DesignerAttribute.cs
- ApplicationException.cs
- WebPermission.cs
- CurrentTimeZone.cs
- CompositeScriptReferenceEventArgs.cs
- XmlEncodedRawTextWriter.cs
- XamlBuildTaskServices.cs
- DrawingCollection.cs
- DataProtection.cs
- ProcessModuleCollection.cs
- TextSerializer.cs
- XPathNodeIterator.cs
- OleDbSchemaGuid.cs
- UriSectionReader.cs
- ValueConversionAttribute.cs
- SessionPageStateSection.cs
- PrintSystemException.cs
- VariableElement.cs
- ColumnCollection.cs
- StreamGeometryContext.cs
- ConfigurationPropertyAttribute.cs
- RuleEngine.cs
- DoubleSumAggregationOperator.cs
- OdbcCommand.cs
- SymLanguageVendor.cs
- Win32MouseDevice.cs
- FixedFindEngine.cs
- IncrementalCompileAnalyzer.cs
- WebControlAdapter.cs
- ExceptionList.cs
- SqlConnection.cs
- GcHandle.cs
- ContextItemManager.cs
- CodeArrayIndexerExpression.cs
- PersistenceTypeAttribute.cs
- HttpGetProtocolImporter.cs
- DrawItemEvent.cs
- TimelineGroup.cs
- StringUtil.cs
- Int64KeyFrameCollection.cs
- MessageQueuePermissionEntryCollection.cs
- ProfileSection.cs
- NotifyParentPropertyAttribute.cs
- SiteMap.cs
- DependencyPropertyAttribute.cs
- ListViewGroupItemCollection.cs
- XmlConverter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DocumentReference.cs
- MailAddressCollection.cs
- FrameworkElementAutomationPeer.cs
- PartManifestEntry.cs
- ListSourceHelper.cs
- SoapIncludeAttribute.cs
- SelectionGlyphBase.cs
- NotifyInputEventArgs.cs
- EncoderBestFitFallback.cs
- LongValidator.cs
- _ListenerRequestStream.cs
- RotateTransform3D.cs