feat(WfState): Wf-Präfix aus Entität, Repository und DbSet entfernt
This commit is contained in:
@@ -3,7 +3,7 @@ using WorkFlow.Domain.Entities;
|
||||
|
||||
namespace WorkFlow.Infrastructure.Contracts
|
||||
{
|
||||
public interface IWfStateRepository : ICRUDRepository<WfState, int>
|
||||
public interface IStateRepository : ICRUDRepository<State, int>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,6 @@ namespace WorkFlow.Infrastructure
|
||||
.AddScoped<IProfileControlsTFRepository, ProfileControlsTFRepository>()
|
||||
.AddScoped<IProfileObjStateRepository, ProfileObjStateRepository>()
|
||||
.AddScoped<IProfileRepository, ProfileRepository>()
|
||||
.AddScoped<IWfStateRepository, WfStateRepository>();
|
||||
.AddScoped<IStateRepository, StateRepository>();
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using WorkFlow.Domain.Entities;
|
||||
using WorkFlow.Infrastructure.Contracts;
|
||||
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>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,6 @@ namespace WorkFlow.Infrastructure
|
||||
|
||||
public DbSet<ProfileObjState> ProfileObjStates { get; set; }
|
||||
|
||||
public DbSet<WfState> WfStates { get; set; }
|
||||
public DbSet<State> States { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user