Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Mapping / StorageTypeMapping.cs / 1 / StorageTypeMapping.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Data.Metadata.Edm; namespace System.Data.Mapping { ////// Represents the Mapping metadata for a type map in CS space. /// ////// For Example if conceptually you could represent the CS MSL file as following /// --Mapping /// --EntityContainerMapping ( CNorthwind-->SNorthwind ) /// --EntitySetMapping /// --EntityTypeMapping /// --TableMappingFragment /// --EntityKey /// --ScalarPropertyMap /// --ScalarPropertyMap /// --EntityTypeMapping /// --TableMappingFragment /// --EntityKey /// --ScalarPropertyMap /// --ComplexPropertyMap /// --ScalarPropertyMap /// --ScalarProperyMap /// --ScalarPropertyMap /// --AssociationSetMapping /// --AssociationTypeMapping /// --TableMappingFragment /// --EndPropertyMap /// --ScalarPropertyMap /// --ScalarProperyMap /// --EndPropertyMap /// --ScalarPropertyMap /// --EntityContainerMapping ( CMyDatabase-->SMyDatabase ) /// --CompositionSetMapping /// --CompositionTypeMapping /// --TableMappingFragment /// --ParentEntityKey /// --ScalarPropertyMap /// --ScalarPropertyMap /// --EntityKey /// --ScalarPropertyMap /// --ScalarPropertyMap /// --ComplexPropertyMap /// --ScalarPropertyMap /// --ScalarProperyMap /// --ScalarPropertyMap /// This class represents the metadata for all the Type map elements in the /// above example namely EntityTypeMapping, AssociationTypeMapping and CompositionTypeMapping. /// The TypeMapping elements contain TableMappingFragments which in turn contain the property maps. /// internal abstract class StorageTypeMapping { #region Constructors ////// Construct the new CSTypeMapping object. /// /// SetMapping that contains this type mapping internal StorageTypeMapping(StorageSetMapping setMapping) { this.m_fragments = new List(); this.m_setMapping = setMapping; } #endregion #region Fields StorageSetMapping m_setMapping; //ExtentMap that contains this type mapping List m_fragments; //Set of fragments that make up the type Mapping #endregion #region Properties /// /// Mapping fragments that make up this set type /// internal ReadOnlyCollectionMappingFragments { get { return this.m_fragments.AsReadOnly(); } } internal StorageSetMapping SetMapping { get { return m_setMapping; } } /// /// a list of TypeMetadata that this mapping holds true for. /// internal abstract ReadOnlyCollectionTypes { get;} /// /// a list of TypeMetadatas for which the mapping holds true for /// not only the type specified but the sub-types of that type as well. /// internal abstract ReadOnlyCollectionIsOfTypes { get;} #endregion #region Methods /// /// Add a fragment mapping as child of this type mapping /// /// internal void AddFragment(StorageMappingFragment fragment) { this.m_fragments.Add(fragment); } ////// This method is primarily for debugging purposes. /// Will be removed shortly. /// /// internal abstract void Print(int index); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Data.Metadata.Edm; namespace System.Data.Mapping { ////// Represents the Mapping metadata for a type map in CS space. /// ////// For Example if conceptually you could represent the CS MSL file as following /// --Mapping /// --EntityContainerMapping ( CNorthwind-->SNorthwind ) /// --EntitySetMapping /// --EntityTypeMapping /// --TableMappingFragment /// --EntityKey /// --ScalarPropertyMap /// --ScalarPropertyMap /// --EntityTypeMapping /// --TableMappingFragment /// --EntityKey /// --ScalarPropertyMap /// --ComplexPropertyMap /// --ScalarPropertyMap /// --ScalarProperyMap /// --ScalarPropertyMap /// --AssociationSetMapping /// --AssociationTypeMapping /// --TableMappingFragment /// --EndPropertyMap /// --ScalarPropertyMap /// --ScalarProperyMap /// --EndPropertyMap /// --ScalarPropertyMap /// --EntityContainerMapping ( CMyDatabase-->SMyDatabase ) /// --CompositionSetMapping /// --CompositionTypeMapping /// --TableMappingFragment /// --ParentEntityKey /// --ScalarPropertyMap /// --ScalarPropertyMap /// --EntityKey /// --ScalarPropertyMap /// --ScalarPropertyMap /// --ComplexPropertyMap /// --ScalarPropertyMap /// --ScalarProperyMap /// --ScalarPropertyMap /// This class represents the metadata for all the Type map elements in the /// above example namely EntityTypeMapping, AssociationTypeMapping and CompositionTypeMapping. /// The TypeMapping elements contain TableMappingFragments which in turn contain the property maps. /// internal abstract class StorageTypeMapping { #region Constructors ////// Construct the new CSTypeMapping object. /// /// SetMapping that contains this type mapping internal StorageTypeMapping(StorageSetMapping setMapping) { this.m_fragments = new List(); this.m_setMapping = setMapping; } #endregion #region Fields StorageSetMapping m_setMapping; //ExtentMap that contains this type mapping List m_fragments; //Set of fragments that make up the type Mapping #endregion #region Properties /// /// Mapping fragments that make up this set type /// internal ReadOnlyCollectionMappingFragments { get { return this.m_fragments.AsReadOnly(); } } internal StorageSetMapping SetMapping { get { return m_setMapping; } } /// /// a list of TypeMetadata that this mapping holds true for. /// internal abstract ReadOnlyCollectionTypes { get;} /// /// a list of TypeMetadatas for which the mapping holds true for /// not only the type specified but the sub-types of that type as well. /// internal abstract ReadOnlyCollectionIsOfTypes { get;} #endregion #region Methods /// /// Add a fragment mapping as child of this type mapping /// /// internal void AddFragment(StorageMappingFragment fragment) { this.m_fragments.Add(fragment); } ////// This method is primarily for debugging purposes. /// Will be removed shortly. /// /// internal abstract void Print(int index); #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
- EqualityComparer.cs
- WindowShowOrOpenTracker.cs
- MultiView.cs
- CellTreeNode.cs
- GradientBrush.cs
- MimeParameter.cs
- PassportAuthenticationModule.cs
- XmlReflectionMember.cs
- ScriptResourceMapping.cs
- RowVisual.cs
- TextEditorTables.cs
- EncodingTable.cs
- EntityTypeBase.cs
- ImageCollectionCodeDomSerializer.cs
- COM2Properties.cs
- OdbcHandle.cs
- OutputCacheSettingsSection.cs
- CurrentTimeZone.cs
- Assembly.cs
- DrawingVisualDrawingContext.cs
- SafeRegistryHandle.cs
- ToolStripItemDataObject.cs
- DataGridHelper.cs
- EpmCustomContentDeSerializer.cs
- ListView.cs
- XmlSchemaInferenceException.cs
- FormParameter.cs
- WinEventTracker.cs
- PersistenceProviderDirectory.cs
- TreeViewHitTestInfo.cs
- DependencySource.cs
- WindowsClaimSet.cs
- DataGridTextBoxColumn.cs
- UIElement.cs
- IndentedWriter.cs
- DateTimeValueSerializer.cs
- UpdateTracker.cs
- BitmapSource.cs
- VirtualPathProvider.cs
- AxisAngleRotation3D.cs
- AuthorizationRuleCollection.cs
- ControlPersister.cs
- TabControl.cs
- DataTableTypeConverter.cs
- BaseParaClient.cs
- CodeGotoStatement.cs
- WebContext.cs
- TextEditorLists.cs
- XmlSchemaValidationException.cs
- TransformGroup.cs
- DataSourceExpression.cs
- DisposableCollectionWrapper.cs
- DocumentSignatureManager.cs
- UIPermission.cs
- Mappings.cs
- PerformanceCounterLib.cs
- Dictionary.cs
- DependencyPropertyAttribute.cs
- httpstaticobjectscollection.cs
- IPipelineRuntime.cs
- Pkcs7Recipient.cs
- PeerNameRegistration.cs
- SqlFactory.cs
- DataGridViewAdvancedBorderStyle.cs
- ServiceTimeoutsBehavior.cs
- LookupBindingPropertiesAttribute.cs
- WebPartTransformerAttribute.cs
- WebPartCollection.cs
- ClientTarget.cs
- ImageSource.cs
- GroupBox.cs
- ForceCopyBuildProvider.cs
- ZoneIdentityPermission.cs
- RewritingProcessor.cs
- UIElement.cs
- DeflateStream.cs
- EmbeddedMailObjectsCollection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DockAndAnchorLayout.cs
- XmlAttribute.cs
- ContainerActivationHelper.cs
- FixedSOMTableRow.cs
- DBCommand.cs
- Function.cs
- AutomationEvent.cs
- EmptyTextWriter.cs
- RegexGroupCollection.cs
- parserscommon.cs
- XmlElementAttribute.cs
- SafeFindHandle.cs
- CheckBoxList.cs
- SecurityDocument.cs
- ConfigurationFileMap.cs
- ConfigurationLockCollection.cs
- SystemMulticastIPAddressInformation.cs
- NaturalLanguageHyphenator.cs
- ToolStripContentPanelRenderEventArgs.cs
- KernelTypeValidation.cs
- PermissionRequestEvidence.cs
- AlphabeticalEnumConverter.cs