Correcting issue with RepositoryResolver not setting the unit of work when resolving.

This commit is contained in:
sitereactor
2012-11-02 11:54:42 -01:00
parent 2ba506e598
commit 98ef3f96f8
6 changed files with 49 additions and 1 deletions

View File

@@ -27,6 +27,10 @@ namespace Umbraco.Core.Models
protected ContentBase(int parentId, IContentTypeComposition contentType, PropertyCollection properties)
{
Mandate.ParameterCondition(parentId != 0, "parentId");
Mandate.ParameterNotNull(contentType, "contentType");
Mandate.ParameterNotNull(properties, "properties");
_parentId = parentId;
_contentTypeId = int.Parse(contentType.Id.ToString(CultureInfo.InvariantCulture));
ContentTypeBase = contentType;