Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BoundColumn.cs
- SamlSerializer.cs
- ZipFileInfo.cs
- SQLMoney.cs
- SafeFileMappingHandle.cs
- StringDictionary.cs
- SafeArrayRankMismatchException.cs
- IdnMapping.cs
- TextFormatterImp.cs
- FrameworkContextData.cs
- PropertyReferenceSerializer.cs
- XmlFormatMapping.cs
- FlatButtonAppearance.cs
- ToolStripRendererSwitcher.cs
- CfgParser.cs
- AlternateView.cs
- DrawingVisual.cs
- DecimalStorage.cs
- PolicyImporterElementCollection.cs
- CopyCodeAction.cs
- LookupBindingPropertiesAttribute.cs
- QilGeneratorEnv.cs
- MatrixIndependentAnimationStorage.cs
- WriteFileContext.cs
- HttpRequestCacheValidator.cs
- SchemaImporterExtensionElementCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- SystemColorTracker.cs
- TreeViewAutomationPeer.cs
- Assembly.cs
- AutomationIdentifier.cs
- PropertyDescriptorCollection.cs
- ObjectCacheSettings.cs
- ToolStripRenderer.cs
- AnimationClockResource.cs
- SafeTimerHandle.cs
- PropertyOverridesTypeEditor.cs
- Win32PrintDialog.cs
- EntryPointNotFoundException.cs
- DefaultShape.cs
- RuntimeResourceSet.cs
- SignedInfo.cs
- TemplateField.cs
- OutOfProcStateClientManager.cs
- DispatcherObject.cs
- PermissionListSet.cs
- DependencyPropertyConverter.cs
- PropertyAccessVisitor.cs
- ServerIdentity.cs
- XmlValidatingReaderImpl.cs
- FileDialog_Vista_Interop.cs
- WebBrowserPermission.cs
- ModuleBuilderData.cs
- GeneralTransformGroup.cs
- DbMetaDataColumnNames.cs
- BaseContextMenu.cs
- DataListItemEventArgs.cs
- FacetChecker.cs
- PropertyGridEditorPart.cs
- TypeUtil.cs
- VisualCollection.cs
- ApplicationId.cs
- AttributeSetAction.cs
- DbParameterCollectionHelper.cs
- DataList.cs
- IdleTimeoutMonitor.cs
- CustomCategoryAttribute.cs
- RadioButtonList.cs
- PathGradientBrush.cs
- ExpressionBuilder.cs
- SoapAttributes.cs
- CookieProtection.cs
- CryptoKeySecurity.cs
- localization.cs
- rsa.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- EnumerableRowCollectionExtensions.cs
- WebPartCatalogCloseVerb.cs
- WorkflowOwnershipException.cs
- TransportConfigurationTypeElement.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TransformerInfoCollection.cs
- TableCell.cs
- Directory.cs
- DbFunctionCommandTree.cs
- DataPointer.cs
- SqlBooleanMismatchVisitor.cs
- EnumBuilder.cs
- ReservationCollection.cs
- IsolatedStorageFileStream.cs
- ImpersonationContext.cs
- InternalBufferOverflowException.cs
- CapabilitiesState.cs
- securitycriticaldata.cs
- IPipelineRuntime.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MessageBox.cs
- ConfigurationManagerHelperFactory.cs
- RegularExpressionValidator.cs
- WebControlParameterProxy.cs