Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataSvcMapFileSerializer.cs
- Oci.cs
- _RequestCacheProtocol.cs
- BufferModeSettings.cs
- DataGridViewCellStyleConverter.cs
- FamilyCollection.cs
- CfgRule.cs
- VisualState.cs
- SoapHeaderAttribute.cs
- SchemaNamespaceManager.cs
- ListParaClient.cs
- ViewgenGatekeeper.cs
- PlanCompilerUtil.cs
- ObjectViewFactory.cs
- MetadataPropertyCollection.cs
- ComplexTypeEmitter.cs
- XLinq.cs
- BamlCollectionHolder.cs
- SemaphoreSlim.cs
- DataGridViewRowPostPaintEventArgs.cs
- FastEncoderStatics.cs
- PrintEvent.cs
- EventLogger.cs
- EntityTemplateFactory.cs
- DesignTimeDataBinding.cs
- UnauthorizedAccessException.cs
- InfoCardTrace.cs
- IgnoreSection.cs
- SR.cs
- ParameterModifier.cs
- DynamicResourceExtension.cs
- DataServiceExpressionVisitor.cs
- ApplicationHost.cs
- RtfFormatStack.cs
- ListViewItemEventArgs.cs
- Point3DCollection.cs
- DeferrableContentConverter.cs
- XamlPathDataSerializer.cs
- mda.cs
- _AuthenticationState.cs
- ModelUIElement3D.cs
- DefaultSettingsSection.cs
- WindowManager.cs
- ListViewItemSelectionChangedEvent.cs
- SectionInput.cs
- DictionaryTraceRecord.cs
- ExcCanonicalXml.cs
- PageParserFilter.cs
- PipelineModuleStepContainer.cs
- SafeFileMappingHandle.cs
- ManagedIStream.cs
- BrowserCapabilitiesFactoryBase.cs
- AssemblyCollection.cs
- ConnectionPoolManager.cs
- Vector3DAnimationBase.cs
- CanonicalXml.cs
- Adorner.cs
- Parameter.cs
- CalculatedColumn.cs
- Rotation3DAnimationUsingKeyFrames.cs
- BindingExpression.cs
- SelectionWordBreaker.cs
- PartialTrustVisibleAssembly.cs
- RecordBuilder.cs
- PathSegment.cs
- ExpressionBuilder.cs
- GraphicsContext.cs
- TemplatePropertyEntry.cs
- StrongTypingException.cs
- PenCursorManager.cs
- ClientOptions.cs
- LicenseContext.cs
- DriveNotFoundException.cs
- EDesignUtil.cs
- DuplicateMessageDetector.cs
- XPathBinder.cs
- cookiecollection.cs
- UInt32.cs
- SHA1CryptoServiceProvider.cs
- AssemblyAttributes.cs
- WebPartManager.cs
- Trace.cs
- WindowsImpersonationContext.cs
- RangeBase.cs
- updatecommandorderer.cs
- BinaryConverter.cs
- MissingManifestResourceException.cs
- GlyphRunDrawing.cs
- ConstructorExpr.cs
- EtwTrace.cs
- EntityKeyElement.cs
- DataGridColumnCollection.cs
- Globals.cs
- MenuItemStyleCollectionEditor.cs
- WebConfigManager.cs
- Material.cs
- SendKeys.cs
- MenuItemStyleCollection.cs
- x509store.cs
- Mapping.cs