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
- MasterPage.cs
- NotCondition.cs
- FlowDocumentReader.cs
- RNGCryptoServiceProvider.cs
- OletxTransactionManager.cs
- FilteredDataSetHelper.cs
- ComplexTypeEmitter.cs
- StrokeNodeData.cs
- HtmlInputControl.cs
- SoapSchemaExporter.cs
- CodeDirectionExpression.cs
- objectquery_tresulttype.cs
- MembershipUser.cs
- WebChannelFactory.cs
- ElementsClipboardData.cs
- FileDialogPermission.cs
- QuaternionRotation3D.cs
- ListViewItem.cs
- EntityDataSource.cs
- HtmlInputPassword.cs
- FormsAuthentication.cs
- CreateDataSourceDialog.cs
- DependencyPropertyHelper.cs
- FixUp.cs
- PropertyMapper.cs
- DataObjectMethodAttribute.cs
- DeflateStream.cs
- _ConnectionGroup.cs
- ParallelTimeline.cs
- ResourceAssociationType.cs
- MsmqUri.cs
- BuildProviderAppliesToAttribute.cs
- DataControlFieldHeaderCell.cs
- SerialPinChanges.cs
- DomainUpDown.cs
- ListBindingConverter.cs
- InfoCardRSACryptoProvider.cs
- FileUtil.cs
- UInt32Converter.cs
- RecordConverter.cs
- RNGCryptoServiceProvider.cs
- __Filters.cs
- AnnouncementInnerClient11.cs
- DbBuffer.cs
- KnownAssembliesSet.cs
- LinearKeyFrames.cs
- EndpointAddress.cs
- RightsManagementManager.cs
- SolidColorBrush.cs
- TextElementAutomationPeer.cs
- FormsAuthenticationModule.cs
- HtmlInputText.cs
- WasAdminWrapper.cs
- Decoder.cs
- ObsoleteAttribute.cs
- MsmqProcessProtocolHandler.cs
- ExpressionBuilderCollection.cs
- COM2Properties.cs
- DesignerUtils.cs
- GridSplitterAutomationPeer.cs
- SerializationFieldInfo.cs
- XmlNotation.cs
- ArrayList.cs
- DependencyObject.cs
- RegexReplacement.cs
- SecurityException.cs
- WindowHideOrCloseTracker.cs
- NullRuntimeConfig.cs
- LambdaCompiler.Expressions.cs
- Signature.cs
- DispatcherTimer.cs
- DataSourceProvider.cs
- GlyphRun.cs
- SmuggledIUnknown.cs
- PrimaryKeyTypeConverter.cs
- XmlSerializerSection.cs
- UTF32Encoding.cs
- PolyQuadraticBezierSegment.cs
- ToolStripItemBehavior.cs
- PowerStatus.cs
- TextTreeTextBlock.cs
- ReaderContextStackData.cs
- IsolatedStorage.cs
- GroupBox.cs
- MouseDevice.cs
- SqlCacheDependencyDatabase.cs
- PatternMatcher.cs
- IconConverter.cs
- InternalDispatchObject.cs
- EntityClientCacheKey.cs
- BindableAttribute.cs
- BorderGapMaskConverter.cs
- Constants.cs
- ActivityDesignerResources.cs
- ObjectIDGenerator.cs
- StackBuilderSink.cs
- KeyValueInternalCollection.cs
- MarkupCompilePass1.cs
- JsonServiceDocumentSerializer.cs
- AutoGeneratedFieldProperties.cs