From 6f8a7d8123fe73cba6fb4b00220b6f879f0e7425 Mon Sep 17 00:00:00 2001 From: Morten Turn Pedersen Date: Fri, 29 Jan 2021 10:19:03 +0100 Subject: [PATCH 1/2] Made the repositories non abstract so you can use them without having to inherit from them if you just need the basic functionality --- NetCoreEntityFramework/Repositories/EntityRepository.cs | 2 +- .../Repositories/EntitySoftDeleteRepository.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NetCoreEntityFramework/Repositories/EntityRepository.cs b/NetCoreEntityFramework/Repositories/EntityRepository.cs index 5cc1634..8b152d5 100644 --- a/NetCoreEntityFramework/Repositories/EntityRepository.cs +++ b/NetCoreEntityFramework/Repositories/EntityRepository.cs @@ -10,7 +10,7 @@ namespace Nodes.NetCore.EntityFramework.Repositories { - public abstract class EntityRepository : IEntityRepository where TEntity : EntityBase + public class EntityRepository : IEntityRepository where TEntity : EntityBase { protected DbContext Context { get; } diff --git a/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs b/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs index c97981f..6c76c3e 100644 --- a/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs +++ b/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs @@ -10,7 +10,7 @@ namespace Nodes.NetCore.EntityFramework.Repositories { - public abstract class EntitySoftDeleteRepository : EntityRepository, IEntitySoftDeleteRepository where TEntity : EntitySoftDeleteBase + public class EntitySoftDeleteRepository : EntityRepository, IEntitySoftDeleteRepository where TEntity : EntitySoftDeleteBase { protected EntitySoftDeleteRepository(DbContext context) : base(context) { From bb601f87772b31d05a02cdb9acc913840aef6214 Mon Sep 17 00:00:00 2001 From: Morten Turn Pedersen Date: Fri, 29 Jan 2021 10:19:25 +0100 Subject: [PATCH 2/2] Updated the NuGet package version --- NetCoreEntityFramework/NetCoreEntityFramework.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetCoreEntityFramework/NetCoreEntityFramework.csproj b/NetCoreEntityFramework/NetCoreEntityFramework.csproj index 206d646..6bb3a7e 100644 --- a/NetCoreEntityFramework/NetCoreEntityFramework.csproj +++ b/NetCoreEntityFramework/NetCoreEntityFramework.csproj @@ -3,7 +3,7 @@ netstandard2.1 Nodes.NetCore.EntityFramework.Helpers - 2.1.1 + 2.1.2 Nodes Nodes .NET Core Entity Framework Helpers