Refactoring the usage of Copy in the ContentService, so that it could be implemented in the Document class.

This commit is contained in:
Morten Christensen
2012-12-12 10:22:58 -01:00
parent 6c7484a1bf
commit 29762e227a
9 changed files with 80 additions and 169 deletions

View File

@@ -18,10 +18,11 @@ namespace Umbraco.Core.Models
private RelationType _relationType;
private string _comment;
public Relation(int parentId, int childId)
public Relation(int parentId, int childId, RelationType relationType)
{
_parentId = parentId;
_childId = childId;
_relationType = relationType;
}
private static readonly PropertyInfo ParentIdSelector = ExpressionHelper.GetPropertyInfo<Relation, int>(x => x.ParentId);