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
- DescendantOverDescendantQuery.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- GridViewDeleteEventArgs.cs
- FrameworkContentElement.cs
- FontStyleConverter.cs
- ICspAsymmetricAlgorithm.cs
- DbConnectionPoolGroup.cs
- NavigatorOutput.cs
- DataSysAttribute.cs
- FixedPosition.cs
- ColorAnimation.cs
- ObjectList.cs
- DesignerSerializationOptionsAttribute.cs
- ValidationManager.cs
- HierarchicalDataSourceControl.cs
- OleDbStruct.cs
- XmlNullResolver.cs
- WebPartExportVerb.cs
- DefaultBindingPropertyAttribute.cs
- LogicalTreeHelper.cs
- XslException.cs
- ExpressionLexer.cs
- HttpResponse.cs
- CharAnimationUsingKeyFrames.cs
- ColumnMap.cs
- ContourSegment.cs
- DbConnectionStringBuilder.cs
- InvalidBodyAccessException.cs
- DataBoundControlHelper.cs
- LinqMaximalSubtreeNominator.cs
- ValidatorCollection.cs
- SqlDataAdapter.cs
- ProxyWebPart.cs
- BevelBitmapEffect.cs
- Shape.cs
- log.cs
- ExpressionVisitor.cs
- HttpRuntime.cs
- TypefaceCollection.cs
- UIElementIsland.cs
- WinInet.cs
- UnsafeNativeMethodsTablet.cs
- ContractTypeNameElement.cs
- PropertyItemInternal.cs
- GetRecipientListRequest.cs
- ContainerSelectorBehavior.cs
- HybridWebProxyFinder.cs
- DataListGeneralPage.cs
- RowUpdatedEventArgs.cs
- Int16AnimationBase.cs
- ContentOperations.cs
- SelectionEditor.cs
- MemoryFailPoint.cs
- XmlSchemaExternal.cs
- ButtonBaseAdapter.cs
- CanonicalXml.cs
- DataSourceXmlClassAttribute.cs
- _NetworkingPerfCounters.cs
- DataContract.cs
- FontConverter.cs
- RenderTargetBitmap.cs
- CompareInfo.cs
- EntityDataSourceViewSchema.cs
- TemplateControlBuildProvider.cs
- ButtonChrome.cs
- RSAOAEPKeyExchangeFormatter.cs
- TextSelectionHelper.cs
- VisualStyleTypesAndProperties.cs
- XPathParser.cs
- ObjectPropertyMapping.cs
- DataTablePropertyDescriptor.cs
- TextOnlyOutput.cs
- ScrollBar.cs
- QilTargetType.cs
- WorkflowQueueInfo.cs
- FunctionNode.cs
- CodeGotoStatement.cs
- RemotingException.cs
- IPCCacheManager.cs
- AssemblyCacheEntry.cs
- AssemblyAssociatedContentFileAttribute.cs
- ValueProviderWrapper.cs
- followingquery.cs
- UniqueIdentifierService.cs
- AuthenticationModulesSection.cs
- PropertyEntry.cs
- PersonalizableAttribute.cs
- ProgressChangedEventArgs.cs
- Attributes.cs
- DataGridTableCollection.cs
- ConnectionsZone.cs
- DiffuseMaterial.cs
- ImageListDesigner.cs
- ConfigXmlReader.cs
- InvalidStoreProtectionKeyException.cs
- ClientTargetSection.cs
- NavigationWindowAutomationPeer.cs
- UpdatePanelControlTrigger.cs
- CompatibleComparer.cs
- XmlSubtreeReader.cs