2016-08-03 10:59:49 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
// <copyright file="ObjectPropertyMapping.cs" company="Microsoft">
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// </copyright>
|
|
|
|
//
|
2017-08-21 15:34:15 +00:00
|
|
|
// @owner Microsoft
|
|
|
|
// @backupOwner Microsoft
|
2016-08-03 10:59:49 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
|
|
|
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 OC member maps.
|
|
|
|
/// </summary>
|
|
|
|
internal class ObjectPropertyMapping: ObjectMemberMapping
|
|
|
|
{
|
|
|
|
#region Constructors
|
|
|
|
/// <summary>
|
|
|
|
/// Constrcut a new member mapping metadata object
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="edmProperty"></param>
|
|
|
|
/// <param name="clrProperty"></param>
|
|
|
|
internal ObjectPropertyMapping(EdmProperty edmProperty, EdmProperty clrProperty) :
|
|
|
|
base(edmProperty, clrProperty)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Properties
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The PropertyMetadata object that represents the Clr member for which mapping is being specified
|
|
|
|
/// </summary>
|
|
|
|
internal EdmProperty ClrProperty
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return (EdmProperty)this.ClrMember;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// return the member mapping kind
|
|
|
|
/// </summary>
|
|
|
|
internal override MemberMappingKind MemberMappingKind
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return MemberMappingKind.ScalarPropertyMapping;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|