From a7081d3f7493e064befce1f94c8b72449c91b4e3 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 11:49:20 +0200 Subject: [PATCH] =?UTF-8?q?feat(WfState):=20Wf-Pr=C3=A4fix=20aus=20Entit?= =?UTF-8?q?=C3=A4t,=20Repository=20und=20DbSet=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WorkFlow.Domain/Entities/ProfileObjState.cs | 2 +- WorkFlow.Domain/Entities/{WfState.cs => State.cs} | 2 +- .../Contracts/{IWfStateRepository.cs => IStateRepository.cs} | 2 +- WorkFlow.Infrastructure/DIExtensions.cs | 2 +- .../Repositories/{WfStateRepository.cs => StateRepository.cs} | 2 +- WorkFlow.Infrastructure/WFDBContext.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename WorkFlow.Domain/Entities/{WfState.cs => State.cs} (94%) rename WorkFlow.Infrastructure/Contracts/{IWfStateRepository.cs => IStateRepository.cs} (66%) rename WorkFlow.Infrastructure/Repositories/{WfStateRepository.cs => StateRepository.cs} (55%) diff --git a/WorkFlow.Domain/Entities/ProfileObjState.cs b/WorkFlow.Domain/Entities/ProfileObjState.cs index 78d0911..0376582 100644 --- a/WorkFlow.Domain/Entities/ProfileObjState.cs +++ b/WorkFlow.Domain/Entities/ProfileObjState.cs @@ -48,6 +48,6 @@ namespace WorkFlow.Domain.Entities public Profile? Profile { get; init; } = null; [ForeignKey("StateId")] - public WfState? State { get; init; } = null; + public State? State { get; init; } = null; } } \ No newline at end of file diff --git a/WorkFlow.Domain/Entities/WfState.cs b/WorkFlow.Domain/Entities/State.cs similarity index 94% rename from WorkFlow.Domain/Entities/WfState.cs rename to WorkFlow.Domain/Entities/State.cs index bb0ac71..62abba7 100644 --- a/WorkFlow.Domain/Entities/WfState.cs +++ b/WorkFlow.Domain/Entities/State.cs @@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema; namespace WorkFlow.Domain.Entities { [Table("TBMWF_WF_STATE", Schema = "dbo")] - public class WfState : IUnique + public class State : IUnique { [Key] [Column("GUID")] diff --git a/WorkFlow.Infrastructure/Contracts/IWfStateRepository.cs b/WorkFlow.Infrastructure/Contracts/IStateRepository.cs similarity index 66% rename from WorkFlow.Infrastructure/Contracts/IWfStateRepository.cs rename to WorkFlow.Infrastructure/Contracts/IStateRepository.cs index aa7ae9f..50040d9 100644 --- a/WorkFlow.Infrastructure/Contracts/IWfStateRepository.cs +++ b/WorkFlow.Infrastructure/Contracts/IStateRepository.cs @@ -3,7 +3,7 @@ using WorkFlow.Domain.Entities; namespace WorkFlow.Infrastructure.Contracts { - public interface IWfStateRepository : ICRUDRepository + public interface IStateRepository : ICRUDRepository { } } \ No newline at end of file diff --git a/WorkFlow.Infrastructure/DIExtensions.cs b/WorkFlow.Infrastructure/DIExtensions.cs index f68c1bc..b938b07 100644 --- a/WorkFlow.Infrastructure/DIExtensions.cs +++ b/WorkFlow.Infrastructure/DIExtensions.cs @@ -11,6 +11,6 @@ namespace WorkFlow.Infrastructure .AddScoped() .AddScoped() .AddScoped() - .AddScoped(); + .AddScoped(); } } \ No newline at end of file diff --git a/WorkFlow.Infrastructure/Repositories/WfStateRepository.cs b/WorkFlow.Infrastructure/Repositories/StateRepository.cs similarity index 55% rename from WorkFlow.Infrastructure/Repositories/WfStateRepository.cs rename to WorkFlow.Infrastructure/Repositories/StateRepository.cs index ee3d9e6..c35feff 100644 --- a/WorkFlow.Infrastructure/Repositories/WfStateRepository.cs +++ b/WorkFlow.Infrastructure/Repositories/StateRepository.cs @@ -4,7 +4,7 @@ using WorkFlow.Domain.Entities; using WorkFlow.Infrastructure.Contracts; namespace WorkFlow.Infrastructure.Repositories { - public class WfStateRepository(WFDBContext dbContext) : CRUDRepository(dbContext, dbContext.WfStates), IWfStateRepository, ICRUDRepository + public class StateRepository(WFDBContext dbContext) : CRUDRepository(dbContext, dbContext.States), IStateRepository, ICRUDRepository { } } \ No newline at end of file diff --git a/WorkFlow.Infrastructure/WFDBContext.cs b/WorkFlow.Infrastructure/WFDBContext.cs index 63011f5..071ef8a 100644 --- a/WorkFlow.Infrastructure/WFDBContext.cs +++ b/WorkFlow.Infrastructure/WFDBContext.cs @@ -13,6 +13,6 @@ namespace WorkFlow.Infrastructure public DbSet ProfileObjStates { get; set; } - public DbSet WfStates { get; set; } + public DbSet States { get; set; } } } \ No newline at end of file