diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs
index 4031047970..59387fcb9f 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
@@ -16,7 +16,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents the NPoco implementation of .
///
- internal class AuditEntryRepository : NPocoRepositoryBase, IAuditEntryRepository
+ internal class AuditEntryRepository : EntityRepositoryBase, IAuditEntryRepository
{
///
/// Initializes a new instance of the class.
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs
index a42019e59f..8ad370672e 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using NPoco;
@@ -12,7 +12,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class AuditRepository : NPocoRepositoryBase, IAuditRepository
+ internal class AuditRepository : EntityRepositoryBase, IAuditRepository
{
public AuditRepository(IScopeAccessor scopeAccessor, ILogger logger)
: base(scopeAccessor, AppCaches.NoCache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs
index 47ebddf698..cff06a2126 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
using NPoco;
@@ -15,7 +15,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents the NPoco implementation of .
///
- internal class ConsentRepository : NPocoRepositoryBase, IConsentRepository
+ internal class ConsentRepository : EntityRepositoryBase, IConsentRepository
{
///
/// Initializes a new instance of the class.
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs
index a84b34b75a..7b90efd4ae 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
public static bool ThrowOnWarning = false;
}
- public abstract class ContentRepositoryBase : NPocoRepositoryBase, IContentRepository
+ public abstract class ContentRepositoryBase : EntityRepositoryBase, IContentRepository
where TEntity : class, IContentBase
where TRepository : class, IRepository
{
@@ -51,7 +51,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
protected ContentRepositoryBase(
IScopeAccessor scopeAccessor,
AppCaches cache,
- ILogger> logger,
+ ILogger> logger,
ILanguageRepository languageRepository,
IRelationRepository relationRepository,
IRelationTypeRepository relationTypeRepository,
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
index 26596410bf..6554782d24 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
@@ -24,7 +24,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Exposes shared functionality
///
- internal abstract class ContentTypeRepositoryBase : NPocoRepositoryBase, IReadRepository
+ internal abstract class ContentTypeRepositoryBase : EntityRepositoryBase, IReadRepository
where TEntity : class, IContentTypeComposition
{
private readonly IShortStringHelper _shortStringHelper;
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs
index 482a333631..1f614e7647 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs
@@ -24,7 +24,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents a repository for doing CRUD operations for
///
- internal class DataTypeRepository : NPocoRepositoryBase, IDataTypeRepository
+ internal class DataTypeRepository : EntityRepositoryBase, IDataTypeRepository
{
private readonly Lazy _editors;
private readonly IConfigurationEditorJsonSerializer _serializer;
@@ -81,7 +81,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs
index 0c58d26a2a..abab07a7bb 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents a repository for doing CRUD operations for
///
- internal class DictionaryRepository : NPocoRepositoryBase, IDictionaryRepository
+ internal class DictionaryRepository : EntityRepositoryBase, IDictionaryRepository
{
private readonly ILoggerFactory _loggerFactory;
@@ -87,7 +87,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
index 6ed884eb0c..f3b9ca58d6 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
@@ -952,7 +952,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
// reading repository purely for looking up by GUID
// TODO: ugly and to fix we need to decouple the IRepositoryQueryable -> IRepository -> IReadRepository which should all be separate things!
- private class ContentByGuidReadRepository : NPocoRepositoryBase
+ private class ContentByGuidReadRepository : EntityRepositoryBase
{
private readonly DocumentRepository _outerRepo;
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs
index f0315f747c..e9e62d76c9 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs
@@ -15,7 +15,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
// TODO: We need to get a readonly ISO code for the domain assigned
- internal class DomainRepository : NPocoRepositoryBase, IDomainRepository
+ internal class DomainRepository : EntityRepositoryBase, IDomainRepository
{
public DomainRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs
index 36213b089f..26159c4fdf 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// An internal repository for managing entity containers such as doc type, media type, data type containers.
///
- internal class EntityContainerRepository : NPocoRepositoryBase, IEntityContainerRepository
+ internal class EntityContainerRepository : EntityRepositoryBase, IEntityContainerRepository
{
private readonly Guid _containerObjectType;
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs
index c3ed111ffb..29cbdf04e5 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs
@@ -15,7 +15,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
// TODO: We should update this to support both users and members. It means we would remove referential integrity from users
// and the user/member key would be a GUID (we also need to add a GUID to users)
- internal class ExternalLoginRepository : NPocoRepositoryBase, IExternalLoginRepository
+ internal class ExternalLoginRepository : EntityRepositoryBase, IExternalLoginRepository
{
public ExternalLoginRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs
index eb55b476c7..ba3754486c 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs
@@ -12,7 +12,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class KeyValueRepository : NPocoRepositoryBase, IKeyValueRepository
+ internal class KeyValueRepository : EntityRepositoryBase, IKeyValueRepository
{
public KeyValueRepository(IScopeAccessor scopeAccessor, ILogger logger)
: base(scopeAccessor, AppCaches.NoCache, logger)
@@ -30,7 +30,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Guid NodeObjectTypeId => throw new NotSupportedException();
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs
index fd791fe01f..bd72a3faf5 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs
@@ -19,7 +19,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents a repository for doing CRUD operations for
///
- internal class LanguageRepository : NPocoRepositoryBase, ILanguageRepository
+ internal class LanguageRepository : EntityRepositoryBase, ILanguageRepository
{
private readonly GlobalSettings _globalSettings;
private readonly Dictionary _codeIdMap = new Dictionary(StringComparer.OrdinalIgnoreCase);
@@ -86,7 +86,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs
index 61dad47378..678f826fb4 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs
@@ -14,7 +14,7 @@ using Umbraco.Core.Strings;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class MacroRepository : NPocoRepositoryBase, IMacroRepository
+ internal class MacroRepository : EntityRepositoryBase, IMacroRepository
{
private readonly IShortStringHelper _shortStringHelper;
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs
index 0ebea656b1..7e3425707a 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs
@@ -412,7 +412,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
/// TODO: This is ugly and to fix we need to decouple the IRepositoryQueryable -> IRepository -> IReadRepository which should all be separate things!
/// Then we can do the same thing with repository instances and we wouldn't need to leave all these methods as not implemented because we wouldn't need to implement them
///
- private class MediaByGuidReadRepository : NPocoRepositoryBase
+ private class MediaByGuidReadRepository : EntityRepositoryBase
{
private readonly MediaRepository _outerRepo;
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs
index 482a0e627f..6916203e93 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs
@@ -14,7 +14,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class MemberGroupRepository : NPocoRepositoryBase, IMemberGroupRepository
+ internal class MemberGroupRepository : EntityRepositoryBase, IMemberGroupRepository
{
public MemberGroupRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NPocoRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NPocoRepositoryBase.cs
deleted file mode 100644
index ff820da577..0000000000
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NPocoRepositoryBase.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Microsoft.Extensions.Logging;
-using NPoco;
-using Umbraco.Core.Cache;
-using Umbraco.Core.Models.Entities;
-using Umbraco.Core.Persistence.Querying;
-using Umbraco.Core.Persistence.SqlSyntax;
-using Umbraco.Core.Scoping;
-
-namespace Umbraco.Core.Persistence.Repositories.Implement
-{
- ///
- /// Represent an abstract Repository for NPoco based repositories
- ///
- public abstract class NPocoRepositoryBase : EntityRepositoryBase
- where TEntity : class, IEntity
- {
- ///
- /// Initializes a new instance of the class.
- ///
- protected NPocoRepositoryBase(IScopeAccessor scopeAccessor, AppCaches cache, ILogger> logger)
- : base(scopeAccessor, cache, logger)
- { }
- }
-}
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs
index 279a7075ea..161de8c58e 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs
@@ -22,7 +22,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
/// This repo implements the base class so that permissions can be queued to be persisted
/// like the normal repository pattern but the standard repository Get commands don't apply and will throw
///
- internal class PermissionRepository : NPocoRepositoryBase
+ internal class PermissionRepository : EntityRepositoryBase
where TEntity : class, IEntity
{
public PermissionRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger> logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs
index 6d2f95bb4d..5730272dd9 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs
@@ -13,7 +13,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class PublicAccessRepository : NPocoRepositoryBase, IPublicAccessRepository
+ internal class PublicAccessRepository : EntityRepositoryBase, IPublicAccessRepository
{
public PublicAccessRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs
index 9e72846b58..246adf7415 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs
@@ -12,7 +12,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class RedirectUrlRepository : NPocoRepositoryBase, IRedirectUrlRepository
+ internal class RedirectUrlRepository : EntityRepositoryBase, IRedirectUrlRepository
{
public RedirectUrlRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs
index 21b4ce5911..4299d50f15 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs
@@ -19,7 +19,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents a repository for doing CRUD operations for
///
- internal class RelationRepository : NPocoRepositoryBase, IRelationRepository
+ internal class RelationRepository : EntityRepositoryBase, IRelationRepository
{
private readonly IRelationTypeRepository _relationTypeRepository;
private readonly IEntityRepository _entityRepository;
@@ -88,7 +88,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs
index 398dd225ba..953999eaf2 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents a repository for doing CRUD operations for
///
- internal class RelationTypeRepository : NPocoRepositoryBase, IRelationTypeRepository
+ internal class RelationTypeRepository : EntityRepositoryBase, IRelationTypeRepository
{
public RelationTypeRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
@@ -87,7 +87,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
index f215a8997b..556f837245 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
@@ -13,7 +13,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class ServerRegistrationRepository : NPocoRepositoryBase, IServerRegistrationRepository
+ internal class ServerRegistrationRepository : EntityRepositoryBase, IServerRegistrationRepository
{
public ServerRegistrationRepository(IScopeAccessor scopeAccessor, ILogger logger)
: base(scopeAccessor, AppCaches.NoCache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs
index bbe751d2c6..9ddb5c5b60 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Simple abstract ReadOnly repository used to simply have PerformGet and PeformGetAll with an underlying cache
///
- internal abstract class SimpleGetRepository : NPocoRepositoryBase
+ internal abstract class SimpleGetRepository : EntityRepositoryBase
where TEntity : class, IEntity
where TDto: class
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs
index dcd9464ae0..94c2f4289a 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs
@@ -15,7 +15,7 @@ using static Umbraco.Core.Persistence.SqlExtensionsStatics;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- internal class TagRepository : NPocoRepositoryBase, ITagRepository
+ internal class TagRepository : EntityRepositoryBase, ITagRepository
{
public TagRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger)
: base(scopeAccessor, cache, logger)
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs
index b36474d688..d391bb9e4d 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents the Template Repository
///
- internal class TemplateRepository : NPocoRepositoryBase, ITemplateRepository
+ internal class TemplateRepository : EntityRepositoryBase, ITemplateRepository
{
private readonly IIOHelper _ioHelper;
private readonly IShortStringHelper _shortStringHelper;
@@ -99,7 +99,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs
index 30b9b29416..4786548e57 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs
@@ -18,7 +18,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents the UserGroupRepository for doing CRUD operations for
///
- public class UserGroupRepository : NPocoRepositoryBase, IUserGroupRepository
+ public class UserGroupRepository : EntityRepositoryBase, IUserGroupRepository
{
private readonly IShortStringHelper _shortStringHelper;
private readonly UserGroupWithUsersRepository _userGroupWithUsersRepository;
@@ -216,7 +216,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected Sql GetBaseQuery(QueryType type)
{
@@ -358,7 +358,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// used to persist a user group with associated users at once
///
- private class UserGroupWithUsersRepository : NPocoRepositoryBase
+ private class UserGroupWithUsersRepository : EntityRepositoryBase
{
private readonly UserGroupRepository _userGroupRepo;
diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
index 51000dbe70..1557dcc1d1 100644
--- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
+++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
@@ -23,7 +23,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
///
/// Represents the UserRepository for doing CRUD operations for
///
- internal class UserRepository : NPocoRepositoryBase, IUserRepository
+ internal class UserRepository : EntityRepositoryBase, IUserRepository
{
private readonly IMapperCollection _mapperCollection;
private readonly GlobalSettings _globalSettings;
@@ -376,7 +376,7 @@ ORDER BY colName";
#endregion
- #region Overrides of NPocoRepositoryBase
+ #region Overrides of EntityRepositoryBase
protected override Sql GetBaseQuery(bool isCount)
{