Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Mapping / StorageTypeMapping.cs / 1305376 / 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
- ValidationHelpers.cs
- MemberHolder.cs
- PrintingPermissionAttribute.cs
- TCPListener.cs
- BevelBitmapEffect.cs
- ApplicationSettingsBase.cs
- RecordConverter.cs
- SizeChangedEventArgs.cs
- HttpStaticObjectsCollectionBase.cs
- ObjectQuery.cs
- FontStretches.cs
- NotifyParentPropertyAttribute.cs
- DataControlImageButton.cs
- ImportCatalogPart.cs
- ValidatorUtils.cs
- TextElementCollectionHelper.cs
- AccessViolationException.cs
- DataList.cs
- ISSmlParser.cs
- FixedPageAutomationPeer.cs
- Helpers.cs
- PropertyGroupDescription.cs
- HitTestParameters3D.cs
- ReadOnlyPropertyMetadata.cs
- StackOverflowException.cs
- GeometryDrawing.cs
- DescriptionAttribute.cs
- BoundPropertyEntry.cs
- TextLineBreak.cs
- MeshGeometry3D.cs
- RecoverInstanceLocksCommand.cs
- SqlNotificationEventArgs.cs
- ExecutionContext.cs
- MailFileEditor.cs
- HttpContext.cs
- XmlAttributeAttribute.cs
- NativeMethodsCLR.cs
- HtmlTableCellCollection.cs
- StorageScalarPropertyMapping.cs
- XmlAutoDetectWriter.cs
- CalendarModeChangedEventArgs.cs
- DesignerActionMethodItem.cs
- DeviceSpecificChoiceCollection.cs
- PerSessionInstanceContextProvider.cs
- MouseBinding.cs
- JumpPath.cs
- AddDataControlFieldDialog.cs
- Annotation.cs
- UiaCoreApi.cs
- COSERVERINFO.cs
- ListBoxAutomationPeer.cs
- LedgerEntry.cs
- AccessedThroughPropertyAttribute.cs
- ClientSettingsStore.cs
- ToolStripContentPanel.cs
- Stack.cs
- MdImport.cs
- Geometry.cs
- CounterSetInstanceCounterDataSet.cs
- LayoutTableCell.cs
- TextPenaltyModule.cs
- AnyReturnReader.cs
- PolicyVersionConverter.cs
- GeneralTransform3DTo2D.cs
- HtmlFormParameterWriter.cs
- SerializationAttributes.cs
- SmiContextFactory.cs
- PopOutPanel.cs
- TypeElement.cs
- SchemaTypeEmitter.cs
- BreakSafeBase.cs
- BoundField.cs
- OrthographicCamera.cs
- RelationshipConverter.cs
- WsiProfilesElement.cs
- Semaphore.cs
- Message.cs
- SendMailErrorEventArgs.cs
- SvcMapFileLoader.cs
- InputEventArgs.cs
- WebPartCatalogAddVerb.cs
- HtmlTernaryTree.cs
- XmlSignificantWhitespace.cs
- FixedTextPointer.cs
- SmtpTransport.cs
- PersistenceProviderFactory.cs
- DictionarySectionHandler.cs
- PlainXmlSerializer.cs
- SoapCodeExporter.cs
- UserControlBuildProvider.cs
- SymbolMethod.cs
- TableSectionStyle.cs
- BoundingRectTracker.cs
- BrowserTree.cs
- FilePrompt.cs
- Logging.cs
- GcHandle.cs
- ProfilePropertySettingsCollection.cs
- InputLanguageCollection.cs
- IPEndPoint.cs