Adds Relation and RelationType factories U4-987 and U4-986

This commit is contained in:
Morten@Thinkpad-X220
2012-10-09 06:01:04 -02:00
parent 1b0c543176
commit 14e827d749
5 changed files with 91 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ namespace Umbraco.Core.Models
/// </summary>
[Serializable]
[DataContract(IsReference = true)]
public class Relation : Entity
public class Relation : Entity, IAggregateRoot
{
//NOTE: The datetime column from umbracoRelation is set on CreateDate on the Entity
private int _parentId;

View File

@@ -10,7 +10,7 @@ namespace Umbraco.Core.Models
/// </summary>
[Serializable]
[DataContract(IsReference = true)]
public class RelationType : Entity
public class RelationType : Entity, IAggregateRoot
{
private string _name;
private string _alias;