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
- glyphs.cs
- WorkflowPrinting.cs
- ACL.cs
- HandleCollector.cs
- SettingsSection.cs
- SqlXml.cs
- FormsAuthenticationModule.cs
- PauseStoryboard.cs
- ITextView.cs
- SQLBytes.cs
- RadioButtonAutomationPeer.cs
- XamlClipboardData.cs
- ExtractedStateEntry.cs
- XmlCDATASection.cs
- ProfessionalColors.cs
- NavigationHelper.cs
- TextModifier.cs
- PackageProperties.cs
- ScriptManager.cs
- TransactionManager.cs
- TextRangeBase.cs
- BamlRecords.cs
- followingsibling.cs
- Exceptions.cs
- DateBoldEvent.cs
- ElementProxy.cs
- DBCommand.cs
- CounterSample.cs
- Point3DAnimationUsingKeyFrames.cs
- ContextMenu.cs
- StringPropertyBuilder.cs
- Transaction.cs
- PageRouteHandler.cs
- HttpCachePolicyElement.cs
- StyleHelper.cs
- JsonWriterDelegator.cs
- RawStylusInputCustomData.cs
- JsonWriter.cs
- StylusPlugin.cs
- MimePart.cs
- SchemaCollectionPreprocessor.cs
- XsltContext.cs
- DataGrid.cs
- FilteredXmlReader.cs
- autovalidator.cs
- PagePropertiesChangingEventArgs.cs
- FastEncoder.cs
- UnicastIPAddressInformationCollection.cs
- ObjectStateManagerMetadata.cs
- IIS7WorkerRequest.cs
- SoapSchemaMember.cs
- RegexStringValidatorAttribute.cs
- messageonlyhwndwrapper.cs
- ValueQuery.cs
- MultilineStringConverter.cs
- NumberSubstitution.cs
- XsltLoader.cs
- EditorPartDesigner.cs
- TraceFilter.cs
- ExpressionPrefixAttribute.cs
- Site.cs
- InkCanvas.cs
- Stackframe.cs
- ViewLoader.cs
- FileLoadException.cs
- DataServiceRequestOfT.cs
- BaseAppDomainProtocolHandler.cs
- ImageList.cs
- AlphabetConverter.cs
- RegularExpressionValidator.cs
- AdapterDictionary.cs
- SqlDataSourceStatusEventArgs.cs
- MatrixStack.cs
- Geometry3D.cs
- SafeNativeMethods.cs
- NativeMethods.cs
- TextRunProperties.cs
- Encoding.cs
- SimpleApplicationHost.cs
- PositiveTimeSpanValidator.cs
- Matrix.cs
- ObjectDataProvider.cs
- UnmanagedHandle.cs
- QuerySubExprEliminator.cs
- XmlSchema.cs
- SizeValueSerializer.cs
- DataTemplateKey.cs
- InputLangChangeEvent.cs
- ConnectionManagementElement.cs
- DockPattern.cs
- ProfileEventArgs.cs
- SqlTrackingService.cs
- DES.cs
- ExpressionEditorAttribute.cs
- DbConnectionPoolGroup.cs
- LiteralControl.cs
- DecodeHelper.cs
- IndexOutOfRangeException.cs
- querybuilder.cs
- Nullable.cs