Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / MemberMaps.cs / 1305376 / 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 Fields private MemberProjectionIndex m_projectedSlotMap; private MemberDomainMap m_queryDomainMap; private MemberDomainMap m_updateDomainMap; private ViewTarget m_viewTarget; #endregion #region Constructors internal MemberMaps(ViewTarget viewTarget, MemberProjectionIndex 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_viewTarget = viewTarget; } #endregion #region Properties internal MemberProjectionIndex 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_viewTarget == ViewTarget.QueryView ? m_updateDomainMap : m_queryDomainMap; } } internal MemberDomainMap LeftDomainMap { get { return m_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 Fields private MemberProjectionIndex m_projectedSlotMap; private MemberDomainMap m_queryDomainMap; private MemberDomainMap m_updateDomainMap; private ViewTarget m_viewTarget; #endregion #region Constructors internal MemberMaps(ViewTarget viewTarget, MemberProjectionIndex 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_viewTarget = viewTarget; } #endregion #region Properties internal MemberProjectionIndex 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_viewTarget == ViewTarget.QueryView ? m_updateDomainMap : m_queryDomainMap; } } internal MemberDomainMap LeftDomainMap { get { return m_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
- PasswordRecovery.cs
- CodeCatchClause.cs
- ViewCellSlot.cs
- ContentHostHelper.cs
- smtppermission.cs
- SessionStateSection.cs
- DataGridViewRowsAddedEventArgs.cs
- IIS7WorkerRequest.cs
- VoiceSynthesis.cs
- RowToParametersTransformer.cs
- AddInEnvironment.cs
- MsmqInputMessage.cs
- TemplateInstanceAttribute.cs
- AttributeCollection.cs
- DbConnectionPoolIdentity.cs
- FileDialog.cs
- TypeBuilderInstantiation.cs
- RuleSettings.cs
- IPipelineRuntime.cs
- SecurityKeyType.cs
- Binding.cs
- FastEncoderWindow.cs
- RowUpdatingEventArgs.cs
- ScriptManagerProxy.cs
- returneventsaver.cs
- WebPartAddingEventArgs.cs
- Translator.cs
- SqlBooleanMismatchVisitor.cs
- NameValueCollection.cs
- RadioButton.cs
- MD5.cs
- RegistryKey.cs
- RichTextBox.cs
- CellTreeSimplifier.cs
- ActivityExecutionFilter.cs
- TimersDescriptionAttribute.cs
- TabPage.cs
- SmtpFailedRecipientsException.cs
- Math.cs
- SystemIPv4InterfaceProperties.cs
- TdsValueSetter.cs
- TcpProcessProtocolHandler.cs
- MessageFilterException.cs
- Stack.cs
- SortKey.cs
- DelayDesigner.cs
- Preprocessor.cs
- DbDataSourceEnumerator.cs
- SafePEFileHandle.cs
- XamlReader.cs
- ControlBuilderAttribute.cs
- METAHEADER.cs
- MetadataArtifactLoaderResource.cs
- DependentList.cs
- FixedPageProcessor.cs
- Int16AnimationBase.cs
- ChildDocumentBlock.cs
- CallbackValidatorAttribute.cs
- TextRunCache.cs
- WindowVisualStateTracker.cs
- ActivitySurrogateSelector.cs
- SID.cs
- webproxy.cs
- ExportException.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ContextQuery.cs
- X509SecurityTokenProvider.cs
- DigitShape.cs
- SurrogateSelector.cs
- BufferAllocator.cs
- Privilege.cs
- GZipDecoder.cs
- QueryCacheManager.cs
- PropertyChange.cs
- BrowserTree.cs
- EntityDataSourceConfigureObjectContext.cs
- CryptographicAttribute.cs
- StateChangeEvent.cs
- CalendarTable.cs
- XPathSingletonIterator.cs
- ResXResourceSet.cs
- RequestTimeoutManager.cs
- DataGridViewCellStyleBuilderDialog.cs
- ValueTypeFieldReference.cs
- TimeManager.cs
- PriorityQueue.cs
- DebugControllerThread.cs
- XPathException.cs
- BamlRecords.cs
- SessionStateSection.cs
- ImagingCache.cs
- ContentWrapperAttribute.cs
- HelpInfo.cs
- SAPICategories.cs
- ReferentialConstraint.cs
- DbConnectionOptions.cs
- BindingListCollectionView.cs
- CustomBindingElementCollection.cs
- DSASignatureDeformatter.cs
- CommandID.cs