Refactoring the usage of Copy in the ContentService, so that it could be implemented in the Document class.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user