Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / MemberMaps.cs / 1 / 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
- TransformGroup.cs
- WaitHandleCannotBeOpenedException.cs
- StoreContentChangedEventArgs.cs
- HttpContextServiceHost.cs
- XmlConvert.cs
- HitTestDrawingContextWalker.cs
- AffineTransform3D.cs
- SiteMapSection.cs
- ImageBrush.cs
- HyperLinkColumn.cs
- TimestampInformation.cs
- PrimitiveSchema.cs
- MethodBody.cs
- CodeBlockBuilder.cs
- WebResponse.cs
- FillBehavior.cs
- LocalizableAttribute.cs
- PerformanceCountersElement.cs
- PauseStoryboard.cs
- HMACRIPEMD160.cs
- DataColumnChangeEvent.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- CellLabel.cs
- EventLogPermissionEntryCollection.cs
- InstanceStore.cs
- UIElementParagraph.cs
- Rights.cs
- DelimitedListTraceListener.cs
- BaseDataList.cs
- CqlErrorHelper.cs
- StreamReader.cs
- CodeDomSerializationProvider.cs
- ObjectDataSourceMethodEditor.cs
- CompressedStack.cs
- Menu.cs
- WorkflowMarkupSerializer.cs
- IntranetCredentialPolicy.cs
- CatalogPartChrome.cs
- ControlPropertyNameConverter.cs
- ArrayList.cs
- DebugViewWriter.cs
- Listener.cs
- FormViewPageEventArgs.cs
- HelpPage.cs
- ContentDisposition.cs
- SqlParameterCollection.cs
- FileChangesMonitor.cs
- Label.cs
- HtmlControlPersistable.cs
- SqlConnectionStringBuilder.cs
- DataGridViewColumnConverter.cs
- PointCollection.cs
- ReflectionTypeLoadException.cs
- BindingSource.cs
- Sentence.cs
- OptimizedTemplateContent.cs
- PermissionListSet.cs
- RuntimeResourceSet.cs
- RuntimeHelpers.cs
- LicenseContext.cs
- Drawing.cs
- RoleServiceManager.cs
- MarkupExtensionParser.cs
- SystemSounds.cs
- ItemDragEvent.cs
- ThreadInterruptedException.cs
- ResXDataNode.cs
- NullableDoubleSumAggregationOperator.cs
- ServiceHostFactory.cs
- SchemaObjectWriter.cs
- MachineKeyConverter.cs
- StringFunctions.cs
- HScrollProperties.cs
- CompositeTypefaceMetrics.cs
- PropertyStore.cs
- Figure.cs
- MulticastOption.cs
- RestHandlerFactory.cs
- VirtualizingPanel.cs
- CodeSubDirectoriesCollection.cs
- AuthenticationModulesSection.cs
- Variant.cs
- Mappings.cs
- ImageField.cs
- Vars.cs
- AuthenticationServiceManager.cs
- MatrixAnimationUsingKeyFrames.cs
- StickyNoteAnnotations.cs
- Block.cs
- ProfilePropertyNameValidator.cs
- TablePattern.cs
- MetadataItemEmitter.cs
- DodSequenceMerge.cs
- AssertHelper.cs
- ActiveXContainer.cs
- StatusBarItemAutomationPeer.cs
- SourceChangedEventArgs.cs
- WebControlsSection.cs
- CategoryAttribute.cs
- UInt16.cs