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
- TableHeaderCell.cs
- OpCopier.cs
- XPathSelfQuery.cs
- DecoderFallback.cs
- querybuilder.cs
- WebPartMenuStyle.cs
- XmlSchemaChoice.cs
- IEnumerable.cs
- IntSecurity.cs
- WebPartDescription.cs
- TraceProvider.cs
- BufferBuilder.cs
- MetadataItem.cs
- ValidatingPropertiesEventArgs.cs
- Table.cs
- DataSourceCache.cs
- ModuleConfigurationInfo.cs
- ReadOnlyAttribute.cs
- ConvertTextFrag.cs
- EntityProviderServices.cs
- ISFClipboardData.cs
- GridViewColumnCollection.cs
- SerialReceived.cs
- GlyphingCache.cs
- EtwProvider.cs
- ByteArrayHelperWithString.cs
- CfgSemanticTag.cs
- GridProviderWrapper.cs
- XmlRawWriter.cs
- MethodBody.cs
- EventPrivateKey.cs
- ManagementInstaller.cs
- WorkflowApplication.cs
- SmtpReplyReader.cs
- IIS7WorkerRequest.cs
- MexHttpsBindingElement.cs
- CalculatedColumn.cs
- ListViewTableCell.cs
- ObjectDesignerDataSourceView.cs
- DeclaredTypeValidatorAttribute.cs
- XmlSchemaType.cs
- NamedPipeProcessProtocolHandler.cs
- ASCIIEncoding.cs
- AssemblyResourceLoader.cs
- ImageCollectionEditor.cs
- HtmlForm.cs
- TransformGroup.cs
- cookiecollection.cs
- MergeFilterQuery.cs
- ExpressionBinding.cs
- EndpointDiscoveryMetadata11.cs
- BuildDependencySet.cs
- SchemaObjectWriter.cs
- SpellCheck.cs
- Debug.cs
- RunClient.cs
- FloaterParaClient.cs
- AsymmetricKeyExchangeFormatter.cs
- ToolStripArrowRenderEventArgs.cs
- ImpersonationContext.cs
- HttpContextWrapper.cs
- NativeWrapper.cs
- DataBindingCollection.cs
- Odbc32.cs
- DataSourceView.cs
- DataGridViewIntLinkedList.cs
- CreateParams.cs
- SafeFileHandle.cs
- RuntimeWrappedException.cs
- brushes.cs
- StringValidator.cs
- ComboBoxRenderer.cs
- ValidatorCompatibilityHelper.cs
- StylusPointPropertyUnit.cs
- XmlUrlResolver.cs
- FunctionParameter.cs
- ObjectStateEntry.cs
- ProxyAttribute.cs
- ResourceReferenceExpression.cs
- CAGDesigner.cs
- FormsAuthenticationTicket.cs
- Model3DCollection.cs
- DelegateCompletionCallbackWrapper.cs
- Encoder.cs
- RegionInfo.cs
- DataGridViewImageCell.cs
- SelectedDatesCollection.cs
- mediaeventshelper.cs
- WrappedIUnknown.cs
- AttachedPropertyMethodSelector.cs
- FreezableCollection.cs
- MenuAutomationPeer.cs
- FamilyTypefaceCollection.cs
- TreeNodeMouseHoverEvent.cs
- LineServicesRun.cs
- ApplicationId.cs
- CatalogPartDesigner.cs
- LinqDataSourceInsertEventArgs.cs
- WebControl.cs
- httpstaticobjectscollection.cs