From 9bce4e5c66faadaab98654fada26f39633464d57 Mon Sep 17 00:00:00 2001 From: Morten Turn Pedersen Date: Mon, 1 Feb 2021 15:04:15 +0100 Subject: [PATCH] Made the constructors public --- NetCoreEntityFramework/NetCoreEntityFramework.csproj | 3 ++- NetCoreEntityFramework/Repositories/EntityRepository.cs | 2 +- .../Repositories/EntitySoftDeleteRepository.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NetCoreEntityFramework/NetCoreEntityFramework.csproj b/NetCoreEntityFramework/NetCoreEntityFramework.csproj index 6bb3a7e..a1b6665 100644 --- a/NetCoreEntityFramework/NetCoreEntityFramework.csproj +++ b/NetCoreEntityFramework/NetCoreEntityFramework.csproj @@ -3,7 +3,7 @@ netstandard2.1 Nodes.NetCore.EntityFramework.Helpers - 2.1.2 + 2.1.3 Nodes Nodes .NET Core Entity Framework Helpers @@ -13,6 +13,7 @@ Nodes logo.png https://github.com/nodes-dotnet/net-core-entity-framework Github + MIT diff --git a/NetCoreEntityFramework/Repositories/EntityRepository.cs b/NetCoreEntityFramework/Repositories/EntityRepository.cs index 8b152d5..e933a9c 100644 --- a/NetCoreEntityFramework/Repositories/EntityRepository.cs +++ b/NetCoreEntityFramework/Repositories/EntityRepository.cs @@ -14,7 +14,7 @@ public class EntityRepository : IEntityRepository where TEntit { protected DbContext Context { get; } - protected EntityRepository(DbContext context) + public EntityRepository(DbContext context) { Context = context; } diff --git a/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs b/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs index 6c76c3e..18f329a 100644 --- a/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs +++ b/NetCoreEntityFramework/Repositories/EntitySoftDeleteRepository.cs @@ -12,7 +12,7 @@ namespace Nodes.NetCore.EntityFramework.Repositories { public class EntitySoftDeleteRepository : EntityRepository, IEntitySoftDeleteRepository where TEntity : EntitySoftDeleteBase { - protected EntitySoftDeleteRepository(DbContext context) : base(context) + public EntitySoftDeleteRepository(DbContext context) : base(context) { }