Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IconEditor.cs
- XmlAnyAttributeAttribute.cs
- EntityDataSourceChangedEventArgs.cs
- TreeNode.cs
- RequestCachePolicy.cs
- StoryFragments.cs
- EdmRelationshipRoleAttribute.cs
- WebColorConverter.cs
- SessionStateSection.cs
- ColumnMapProcessor.cs
- Timer.cs
- SynchronizedChannelCollection.cs
- SEHException.cs
- IsolatedStorage.cs
- FontCollection.cs
- _SSPIWrapper.cs
- XamlGridLengthSerializer.cs
- FileStream.cs
- Propagator.JoinPropagator.cs
- ToolStripControlHost.cs
- SqlDataSourceSelectingEventArgs.cs
- Emitter.cs
- ObsoleteAttribute.cs
- ThrowHelper.cs
- GPRECT.cs
- XMLUtil.cs
- DataBindEngine.cs
- CodeDirectiveCollection.cs
- DataSourceControl.cs
- PageRouteHandler.cs
- UtilityExtension.cs
- BufferedOutputStream.cs
- CurrentChangingEventManager.cs
- OleDbError.cs
- BaseParser.cs
- ProcessingInstructionAction.cs
- CommandDevice.cs
- WMIInterop.cs
- SystemException.cs
- Expr.cs
- ToolStripLabel.cs
- SQLInt32.cs
- AlternateViewCollection.cs
- SafeLibraryHandle.cs
- SectionRecord.cs
- AssemblyCollection.cs
- TraversalRequest.cs
- BamlLocalizabilityResolver.cs
- XmlSchemaImport.cs
- MulticastNotSupportedException.cs
- BamlReader.cs
- Helper.cs
- XmlTextReaderImplHelpers.cs
- VirtualStackFrame.cs
- TextSegment.cs
- VScrollBar.cs
- TemplateBindingExpression.cs
- EventWaitHandle.cs
- Viewport3DVisual.cs
- CultureMapper.cs
- GridItemPatternIdentifiers.cs
- SchemaNamespaceManager.cs
- ReadOnlyObservableCollection.cs
- SystemNetworkInterface.cs
- SelectQueryOperator.cs
- WindowsListViewGroupSubsetLink.cs
- StaticResourceExtension.cs
- DispatcherSynchronizationContext.cs
- DependencyPropertyConverter.cs
- Utils.cs
- SingleObjectCollection.cs
- IpcManager.cs
- CreateUserWizard.cs
- SplitterPanel.cs
- Label.cs
- DecimalAnimation.cs
- DataBoundControlParameterTarget.cs
- FontStyle.cs
- HiddenField.cs
- SortedDictionary.cs
- GridViewUpdatedEventArgs.cs
- IndexedGlyphRun.cs
- UpdateCommand.cs
- TableLayout.cs
- BaseCollection.cs
- StylusShape.cs
- MetadataCache.cs
- XsltLoader.cs
- EntityDataSourceChangingEventArgs.cs
- DependencyPropertyDescriptor.cs
- TransformConverter.cs
- DesignerForm.cs
- Icon.cs
- JsonByteArrayDataContract.cs
- PlainXmlWriter.cs
- TypeDelegator.cs
- ObjectDataSourceMethodEventArgs.cs
- VisualStates.cs
- ContextMarshalException.cs
- LocalValueEnumerator.cs