Rename Umbraco.Core namespace to Umbraco.Cms.Core

This commit is contained in:
Mole
2021-02-09 10:22:42 +01:00
parent b0b1de9972
commit 216fb87c79
2949 changed files with 9097 additions and 6810 deletions

View File

@@ -3,6 +3,10 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
using NPoco;
using Umbraco.Cms.Core.Cache;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Persistence.Querying;
using Umbraco.Cms.Core.Persistence.Repositories;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Dtos;
@@ -21,7 +25,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
public EntityContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger<EntityContainerRepository> logger, Guid containerObjectType)
: base(scopeAccessor, cache, logger)
{
var allowedContainers = new[] { Constants.ObjectTypes.DocumentTypeContainer, Constants.ObjectTypes.MediaTypeContainer, Constants.ObjectTypes.DataTypeContainer };
var allowedContainers = new[] { Cms.Core.Constants.ObjectTypes.DocumentTypeContainer, Cms.Core.Constants.ObjectTypes.MediaTypeContainer, Cms.Core.Constants.ObjectTypes.DataTypeContainer };
_containerObjectType = containerObjectType;
if (allowedContainers.Contains(_containerObjectType) == false)
throw new InvalidOperationException("No container type exists with ID: " + _containerObjectType);
@@ -92,7 +96,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
var entity = new EntityContainer(nodeDto.NodeId, nodeDto.UniqueId,
nodeDto.ParentId, nodeDto.Path, nodeDto.Level, nodeDto.SortOrder,
containedObjectType,
nodeDto.Text, nodeDto.UserId ?? Constants.Security.UnknownUserId);
nodeDto.Text, nodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId);
// reset dirty initial properties (U4-1946)
entity.ResetDirtyProperties(false);