Add back ctor to revert a breaking change

This commit is contained in:
Sebastiaan Janssen
2020-04-15 21:11:14 +02:00
parent 4a071f6e05
commit 0d7b0b9674
+7
View File
@@ -42,6 +42,13 @@ namespace Umbraco.Core.Models
Name = _alias;
}
[Obsolete("This constructor is incomplete, use one of the other constructors instead")]
public RelationType(Guid childObjectType, Guid parentObjectType, string alias, string name)
: this(childObjectType, parentObjectType, alias)
{
if (string.IsNullOrWhiteSpace(name)) throw new ArgumentNullOrEmptyException(nameof(name));
Name = name;
}
/// <summary>
/// Gets or sets the Name of the RelationType