Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ThreadSafeList.cs
- ClientOptions.cs
- FontUnit.cs
- OleDbDataReader.cs
- KnowledgeBase.cs
- List.cs
- FrameDimension.cs
- SiteMapNodeCollection.cs
- DataBoundControlHelper.cs
- SecurityRuntime.cs
- FloaterParaClient.cs
- SqlNotificationRequest.cs
- COM2Properties.cs
- BoundPropertyEntry.cs
- DataGridColumn.cs
- CreateParams.cs
- ParentQuery.cs
- StorageTypeMapping.cs
- BasicHttpMessageSecurity.cs
- TemplateBindingExtensionConverter.cs
- WorkflowRuntimeService.cs
- SchemaSetCompiler.cs
- TextRunProperties.cs
- TextRangeSerialization.cs
- XpsResourceDictionary.cs
- SizeChangedInfo.cs
- UnmanagedMemoryStream.cs
- SynchronousReceiveBehavior.cs
- TextTreePropertyUndoUnit.cs
- ModelVisual3D.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- Odbc32.cs
- SmiContextFactory.cs
- InternalTypeHelper.cs
- SmiSettersStream.cs
- DialogWindow.cs
- ApplicationBuildProvider.cs
- ConfigXmlAttribute.cs
- HwndKeyboardInputProvider.cs
- CodeGroup.cs
- DefaultObjectSerializer.cs
- InternalPermissions.cs
- NameScopePropertyAttribute.cs
- RotateTransform3D.cs
- AsymmetricSignatureFormatter.cs
- SyncOperationState.cs
- HtmlTableCellCollection.cs
- TextViewSelectionProcessor.cs
- PhoneCall.cs
- Geometry3D.cs
- ObjectAnimationBase.cs
- EventProxy.cs
- Command.cs
- Point4D.cs
- FormatConvertedBitmap.cs
- MessageDescription.cs
- Drawing.cs
- ErrorEventArgs.cs
- QuotedPrintableStream.cs
- UnsafeNetInfoNativeMethods.cs
- WindowsStartMenu.cs
- ServiceDesigner.cs
- PopupEventArgs.cs
- WebConfigurationHost.cs
- RegistrationServices.cs
- SqlDataAdapter.cs
- InfoCardAsymmetricCrypto.cs
- ClrProviderManifest.cs
- ObjectReferenceStack.cs
- SimpleWebHandlerParser.cs
- SafeCryptoHandles.cs
- MsmqQueue.cs
- Membership.cs
- HybridDictionary.cs
- DeferredReference.cs
- _LocalDataStoreMgr.cs
- AndAlso.cs
- TitleStyle.cs
- XmlSchemaAny.cs
- EpmContentSerializer.cs
- SecureEnvironment.cs
- Matrix.cs
- XmlSchemaValidationException.cs
- ComponentConverter.cs
- XmlStreamStore.cs
- WebContext.cs
- SimpleHandlerFactory.cs
- PerformanceCounterPermission.cs
- XmlWrappingReader.cs
- SchemaMerger.cs
- MSAAEventDispatcher.cs
- LassoSelectionBehavior.cs
- ManagementEventWatcher.cs
- DateTimeParse.cs
- Journal.cs
- MarkupProperty.cs
- DesignUtil.cs
- SequentialOutput.cs
- _HelperAsyncResults.cs
- Itemizer.cs