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
- PiiTraceSource.cs
- Storyboard.cs
- AuthenticationException.cs
- PropertyConverter.cs
- ArgumentOutOfRangeException.cs
- XmlSchemaElement.cs
- SchemaDeclBase.cs
- X509AudioLogo.cs
- ConsumerConnectionPointCollection.cs
- TreeViewItemAutomationPeer.cs
- CodeGotoStatement.cs
- XPathNodeHelper.cs
- PopupRoot.cs
- Vector3D.cs
- QueryStatement.cs
- DockProviderWrapper.cs
- TextPattern.cs
- TextRunProperties.cs
- GridProviderWrapper.cs
- RoleManagerEventArgs.cs
- ColorEditor.cs
- InternalRelationshipCollection.cs
- Lasso.cs
- NullableFloatAverageAggregationOperator.cs
- BindingOperations.cs
- MouseGesture.cs
- ContentElement.cs
- _SpnDictionary.cs
- MutableAssemblyCacheEntry.cs
- PropertyGeneratedEventArgs.cs
- TextSelectionProcessor.cs
- UIElementIsland.cs
- HMACSHA1.cs
- ListViewUpdateEventArgs.cs
- FileDialogCustomPlace.cs
- SHA256.cs
- BitmapImage.cs
- PolicyException.cs
- SystemIcons.cs
- SurrogateChar.cs
- TransformerConfigurationWizardBase.cs
- input.cs
- SerializationStore.cs
- XamlPathDataSerializer.cs
- WindowsFont.cs
- WebPartVerbsEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- FrameworkTextComposition.cs
- NameTable.cs
- ReadOnlyKeyedCollection.cs
- PolyQuadraticBezierSegment.cs
- BasePattern.cs
- XmlPreloadedResolver.cs
- SqlDataSourceConfigureSortForm.cs
- LogWriteRestartAreaState.cs
- IsolatedStorage.cs
- Decimal.cs
- AnimationStorage.cs
- DrawingImage.cs
- ListBoxItemWrapperAutomationPeer.cs
- RewritingProcessor.cs
- ListViewUpdateEventArgs.cs
- Viewport2DVisual3D.cs
- SecurityContext.cs
- DefaultObjectMappingItemCollection.cs
- QueryConverter.cs
- BaseCodeDomTreeGenerator.cs
- DashStyle.cs
- SeekStoryboard.cs
- UnmanagedMarshal.cs
- Literal.cs
- XmlSerializerAssemblyAttribute.cs
- ErrorFormatterPage.cs
- ToggleButtonAutomationPeer.cs
- NonVisualControlAttribute.cs
- Span.cs
- TdsParserSafeHandles.cs
- ConditionalWeakTable.cs
- DataTrigger.cs
- XomlCompilerResults.cs
- InfiniteIntConverter.cs
- DataGridViewRowsRemovedEventArgs.cs
- UIElement3D.cs
- recordstatefactory.cs
- AttributeQuery.cs
- Compensation.cs
- RawStylusInputCustomDataList.cs
- IsolationInterop.cs
- RightsManagementInformation.cs
- SmtpDigestAuthenticationModule.cs
- XmlSchemaNotation.cs
- ExportException.cs
- ProjectionPath.cs
- OdbcTransaction.cs
- EventLogPermissionEntry.cs
- DynamicILGenerator.cs
- ContainerFilterService.cs
- XmlWriterSettings.cs
- WriteStateInfoBase.cs
- SettingsAttributes.cs