feat(WfState): Wf-Präfix aus Entität, Repository und DbSet entfernt

This commit is contained in:
Developer 02 2024-10-23 11:49:20 +02:00
parent e1ec8c581c
commit a7081d3f74
6 changed files with 6 additions and 6 deletions

View File

@ -48,6 +48,6 @@ namespace WorkFlow.Domain.Entities
public Profile? Profile { get; init; } = null; public Profile? Profile { get; init; } = null;
[ForeignKey("StateId")] [ForeignKey("StateId")]
public WfState? State { get; init; } = null; public State? State { get; init; } = null;
} }
} }

View File

@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace WorkFlow.Domain.Entities namespace WorkFlow.Domain.Entities
{ {
[Table("TBMWF_WF_STATE", Schema = "dbo")] [Table("TBMWF_WF_STATE", Schema = "dbo")]
public class WfState : IUnique<int> public class State : IUnique<int>
{ {
[Key] [Key]
[Column("GUID")] [Column("GUID")]

View File

@ -3,7 +3,7 @@ using WorkFlow.Domain.Entities;
namespace WorkFlow.Infrastructure.Contracts namespace WorkFlow.Infrastructure.Contracts
{ {
public interface IWfStateRepository : ICRUDRepository<WfState, int> public interface IStateRepository : ICRUDRepository<State, int>
{ {
} }
} }

View File

@ -11,6 +11,6 @@ namespace WorkFlow.Infrastructure
.AddScoped<IProfileControlsTFRepository, ProfileControlsTFRepository>() .AddScoped<IProfileControlsTFRepository, ProfileControlsTFRepository>()
.AddScoped<IProfileObjStateRepository, ProfileObjStateRepository>() .AddScoped<IProfileObjStateRepository, ProfileObjStateRepository>()
.AddScoped<IProfileRepository, ProfileRepository>() .AddScoped<IProfileRepository, ProfileRepository>()
.AddScoped<IWfStateRepository, WfStateRepository>(); .AddScoped<IStateRepository, StateRepository>();
} }
} }

View File

@ -4,7 +4,7 @@ using WorkFlow.Domain.Entities;
using WorkFlow.Infrastructure.Contracts; using WorkFlow.Infrastructure.Contracts;
namespace WorkFlow.Infrastructure.Repositories namespace WorkFlow.Infrastructure.Repositories
{ {
public class WfStateRepository(WFDBContext dbContext) : CRUDRepository<WfState, int, WFDBContext>(dbContext, dbContext.WfStates), IWfStateRepository, ICRUDRepository<WfState, int> public class StateRepository(WFDBContext dbContext) : CRUDRepository<State, int, WFDBContext>(dbContext, dbContext.States), IStateRepository, ICRUDRepository<State, int>
{ {
} }
} }

View File

@ -13,6 +13,6 @@ namespace WorkFlow.Infrastructure
public DbSet<ProfileObjState> ProfileObjStates { get; set; } public DbSet<ProfileObjState> ProfileObjStates { get; set; }
public DbSet<WfState> WfStates { get; set; } public DbSet<State> States { get; set; }
} }
} }