feat(WfState): Wf-Präfix aus Entität, Repository und DbSet entfernt
This commit is contained in:
parent
e1ec8c581c
commit
a7081d3f74
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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")]
|
||||||
@ -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>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user