1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
//---------------------------------------------------------------------
// <copyright file="StoragePropertyMapping.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//
// @owner Microsoft
// @backupOwner Microsoft
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Data.Metadata.Edm;
namespace System.Data.Mapping {
/// <summary>
/// Mapping metadata for all types of property mappings.
/// </summary>
/// <example>
/// For Example if conceptually you could represent the CS MSL file as following
/// --Mapping
/// --EntityContainerMapping ( CNorthwind-->SNorthwind )
/// --EntitySetMapping
/// --EntityTypeMapping
/// --MappingFragment
/// --EntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --EntityTypeMapping
/// --MappingFragment
/// --EntityKey
/// --ScalarPropertyMap
/// --ComplexPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --ScalarPropertyMap
/// --AssociationSetMapping
/// --AssociationTypeMapping
/// --MappingFragment
/// --EndPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --EndPropertyMap
/// --ScalarPropertyMap
/// This class represents the metadata for all property map elements in the
/// above example. This includes the scalar property maps, complex property maps
/// and end property maps.
/// </example>
internal abstract class StoragePropertyMapping {
#region Constructors
/// <summary>
/// Construct a new EdmProperty mapping object
/// </summary>
/// <param name="cdmMember">The PropertyMetadata object that represents the member for which mapping is being specified</param>
internal StoragePropertyMapping(EdmProperty cdmMember) {
this.m_cdmMember = cdmMember;
}
#endregion
#region Fields
/// <summary>
/// EdmProperty metadata representing the Cdm member for which the mapping is specified.
/// </summary>
EdmProperty m_cdmMember;
#endregion
#region Properties
/// <summary>
/// The PropertyMetadata object that represents the member for which mapping is being specified
/// </summary>
internal virtual EdmProperty EdmProperty
{
get {
return this.m_cdmMember;
}
}
#endregion
#region Methods
/// <summary>
/// This method is primarily for debugging purposes.
/// Will be removed shortly.
/// </summary>
/// <param name="index"></param>
internal virtual void Print(int index) {
}
#endregion
}
}
|