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
- ResponseStream.cs
- FormatStringEditor.cs
- TemplateBindingExtensionConverter.cs
- Crc32.cs
- GridViewColumnCollection.cs
- HttpModule.cs
- Span.cs
- ParagraphVisual.cs
- PropertyMappingExceptionEventArgs.cs
- XMLSyntaxException.cs
- EmptyCollection.cs
- ArgumentNullException.cs
- Models.cs
- WindowsGraphicsWrapper.cs
- FormatConvertedBitmap.cs
- StorageTypeMapping.cs
- DataGridViewRowsAddedEventArgs.cs
- IndicShape.cs
- AsymmetricSignatureFormatter.cs
- InvalidStoreProtectionKeyException.cs
- WindowsListViewGroupHelper.cs
- MouseGestureConverter.cs
- QueryOutputWriterV1.cs
- ClientUtils.cs
- AssemblyAttributesGoHere.cs
- DisposableCollectionWrapper.cs
- XmlSchemaComplexType.cs
- ParameterRefs.cs
- HttpCacheVaryByContentEncodings.cs
- DataGridViewCellCollection.cs
- ActiveDocumentEvent.cs
- ApplyTemplatesAction.cs
- CodeExporter.cs
- ServiceActivationException.cs
- DataServiceKeyAttribute.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DrawingServices.cs
- SQLBinaryStorage.cs
- RelationshipEnd.cs
- WebZone.cs
- webproxy.cs
- InvalidPrinterException.cs
- DbExpressionBuilder.cs
- File.cs
- UIElement3DAutomationPeer.cs
- MetadataCacheItem.cs
- PointCollection.cs
- ThreadInterruptedException.cs
- CrossAppDomainChannel.cs
- ScopedKnownTypes.cs
- WindowShowOrOpenTracker.cs
- _SslStream.cs
- Slider.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CatalogZoneBase.cs
- StringKeyFrameCollection.cs
- AlphaSortedEnumConverter.cs
- ValidationEventArgs.cs
- UrlMappingCollection.cs
- ContainerSelectorActiveEvent.cs
- UIElementParagraph.cs
- FileLevelControlBuilderAttribute.cs
- Block.cs
- MimeWriter.cs
- UnderstoodHeaders.cs
- ProcessHostMapPath.cs
- SQLDouble.cs
- BaseParagraph.cs
- BitmapMetadataEnumerator.cs
- CultureTableRecord.cs
- CuspData.cs
- SafeHandles.cs
- BoundColumn.cs
- ZipArchive.cs
- NameSpaceEvent.cs
- EntityCommandExecutionException.cs
- ApplicationSecurityInfo.cs
- WebHeaderCollection.cs
- OdbcEnvironment.cs
- Style.cs
- ScrollChangedEventArgs.cs
- NavigatorOutput.cs
- ColorTranslator.cs
- PerspectiveCamera.cs
- TextViewDesigner.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ITreeGenerator.cs
- Console.cs
- ChangeProcessor.cs
- JsonObjectDataContract.cs
- DispatchChannelSink.cs
- IgnoreFileBuildProvider.cs
- HtmlFormWrapper.cs
- OleDbSchemaGuid.cs
- BrowserCapabilitiesCodeGenerator.cs
- TextServicesContext.cs
- ExtendedPropertyCollection.cs
- SQLBoolean.cs
- DataSourceHelper.cs