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 ReadOnlyCollection MappingFragments
{
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 ReadOnlyCollection Types { 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 ReadOnlyCollection IsOfTypes { 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 ReadOnlyCollection MappingFragments
{
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 ReadOnlyCollection Types { 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 ReadOnlyCollection IsOfTypes { 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
- WindowsAuthenticationEventArgs.cs
- InstanceHandle.cs
- SpanIndex.cs
- Win32.cs
- DesignTimeTemplateParser.cs
- EventLogPermission.cs
- NullableFloatAverageAggregationOperator.cs
- TextOutput.cs
- DBCSCodePageEncoding.cs
- AccessedThroughPropertyAttribute.cs
- IPipelineRuntime.cs
- FormsAuthenticationUserCollection.cs
- xml.cs
- FileUpload.cs
- Stroke2.cs
- DbException.cs
- UserPreferenceChangingEventArgs.cs
- ModelTreeEnumerator.cs
- UmAlQuraCalendar.cs
- ApplicationManager.cs
- SecurityTokenTypes.cs
- ProvidersHelper.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AlternationConverter.cs
- SchemaMerger.cs
- AssemblyFilter.cs
- BindingNavigator.cs
- TemplateBindingExtensionConverter.cs
- XpsS0ValidatingLoader.cs
- ComponentGlyph.cs
- SqlInfoMessageEvent.cs
- DesignerObjectListAdapter.cs
- WorkItem.cs
- Converter.cs
- ViewStateModeByIdAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DiffuseMaterial.cs
- SqlEnums.cs
- DesignerTextBoxAdapter.cs
- InternalsVisibleToAttribute.cs
- TreeView.cs
- CategoryAttribute.cs
- ArrayItemValue.cs
- MergeFilterQuery.cs
- COSERVERINFO.cs
- LinearQuaternionKeyFrame.cs
- Setter.cs
- Emitter.cs
- DataControlButton.cs
- QueryableFilterUserControl.cs
- __Filters.cs
- WorkflowServiceOperationListItem.cs
- DiffuseMaterial.cs
- FolderLevelBuildProvider.cs
- UpDownBaseDesigner.cs
- DBParameter.cs
- XmlRootAttribute.cs
- OdbcHandle.cs
- StringDictionaryWithComparer.cs
- FormatConvertedBitmap.cs
- IntSecurity.cs
- AutoGeneratedField.cs
- PermissionAttributes.cs
- TemplateManager.cs
- TouchPoint.cs
- DataGridViewTextBoxEditingControl.cs
- GeneralTransform3DCollection.cs
- AttributeSetAction.cs
- RenderTargetBitmap.cs
- ObjectHandle.cs
- MatrixAnimationUsingPath.cs
- EtwTrace.cs
- TraceInternal.cs
- WebPartAuthorizationEventArgs.cs
- XmlDictionary.cs
- MD5HashHelper.cs
- StylusCollection.cs
- MemberPathMap.cs
- FileRegion.cs
- XsltLibrary.cs
- DeploymentSection.cs
- XmlSchemaGroupRef.cs
- RegistrationServices.cs
- Int16KeyFrameCollection.cs
- PermissionSet.cs
- messageonlyhwndwrapper.cs
- AlignmentXValidation.cs
- Light.cs
- cookiecollection.cs
- Model3DGroup.cs
- WebServiceFault.cs
- KeyConstraint.cs
- elementinformation.cs
- ColorMatrix.cs
- ProvidersHelper.cs
- HuffModule.cs
- Script.cs
- DataGridViewRowConverter.cs
- DbCommandDefinition.cs
- XmlSchemaAttribute.cs