using System.Runtime.Serialization;
using Umbraco.Core.Models.Entities;
namespace Umbraco.Core.Models
{
public interface IRelation : IEntity, IRememberBeingDirty
{
///
/// Gets or sets the Parent Id of the Relation (Source)
///
[DataMember]
int ParentId { get; set; }
///
/// Gets or sets the Child Id of the Relation (Destination)
///
[DataMember]
int ChildId { get; set; }
///
/// Gets or sets the for the Relation
///
[DataMember]
IRelationType RelationType { get; set; }
///
/// Gets or sets a comment for the Relation
///
[DataMember]
string Comment { get; set; }
///
/// Gets the Id of the that this Relation is based on.
///
[IgnoreDataMember]
int RelationTypeId { get; }
}
}