Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeDefinition.cs
- CompositeScriptReference.cs
- EdmItemError.cs
- PropertyConverter.cs
- UIntPtr.cs
- AttributeSetAction.cs
- ViewDesigner.cs
- SafeCertificateContext.cs
- TripleDESCryptoServiceProvider.cs
- HyperLinkField.cs
- webclient.cs
- PasswordBoxAutomationPeer.cs
- DebugView.cs
- XsltException.cs
- ErrorTableItemStyle.cs
- GridView.cs
- SymmetricKeyWrap.cs
- ValueType.cs
- SoapInteropTypes.cs
- AssemblyResourceLoader.cs
- GridEntry.cs
- SymLanguageType.cs
- PkcsUtils.cs
- TrackBarRenderer.cs
- TableLayout.cs
- DataGridViewTextBoxCell.cs
- LinearGradientBrush.cs
- VarRefManager.cs
- DataObjectAttribute.cs
- DragEventArgs.cs
- SimpleWebHandlerParser.cs
- OutputCacheProfile.cs
- TableStyle.cs
- MethodRental.cs
- XPathNodePointer.cs
- ThicknessAnimationUsingKeyFrames.cs
- SqlDuplicator.cs
- StatusBarDrawItemEvent.cs
- CollectionView.cs
- ServicePointManagerElement.cs
- ISFTagAndGuidCache.cs
- SqlClientFactory.cs
- GlobalProxySelection.cs
- ActivationServices.cs
- PropertyBuilder.cs
- BypassElement.cs
- RoamingStoreFileUtility.cs
- HyperLinkStyle.cs
- Model3D.cs
- SecurityKeyUsage.cs
- sqlinternaltransaction.cs
- CreateUserErrorEventArgs.cs
- PointLightBase.cs
- BitSet.cs
- XmlTypeMapping.cs
- PropertyIdentifier.cs
- LicenseProviderAttribute.cs
- TargetFrameworkUtil.cs
- Contracts.cs
- SqlResolver.cs
- PagesSection.cs
- ByteAnimation.cs
- Enumerable.cs
- CodeDomExtensionMethods.cs
- ExtendedProtectionPolicy.cs
- ClientSettingsStore.cs
- XmlTypeMapping.cs
- ImageCodecInfo.cs
- MetadataExchangeBindings.cs
- PolyBezierSegmentFigureLogic.cs
- FillErrorEventArgs.cs
- DependentTransaction.cs
- TransformedBitmap.cs
- DataObjectCopyingEventArgs.cs
- FlowDocumentFormatter.cs
- FlatButtonAppearance.cs
- RoleManagerSection.cs
- FlatButtonAppearance.cs
- connectionpool.cs
- ItemChangedEventArgs.cs
- Soap12ProtocolImporter.cs
- WebPartZone.cs
- StandardToolWindows.cs
- PriorityBinding.cs
- MemoryMappedView.cs
- TemplateEditingFrame.cs
- PropertyGridDesigner.cs
- ChannelOptions.cs
- wgx_sdk_version.cs
- FrameworkPropertyMetadata.cs
- ResourceContainerWrapper.cs
- XmlSchemaSet.cs
- ListViewInsertedEventArgs.cs
- PrePrepareMethodAttribute.cs
- ExpandedWrapper.cs
- HttpCapabilitiesBase.cs
- InternalControlCollection.cs
- Bitmap.cs
- CodeExporter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs