feat(Contracts): implementiert alle Repository-Schnittstellen mit CRUDRepository
This commit is contained in:
parent
3c5df5bc6a
commit
f611847e2a
11
WorkFlow.Infrastructure/Repositories/ConfigRepository.cs
Normal file
11
WorkFlow.Infrastructure/Repositories/ConfigRepository.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using DigitalData.Core.Abstractions.Infrastructure;
|
||||
using DigitalData.Core.Infrastructure;
|
||||
using WorkFlow.Domain.Entities;
|
||||
using WorkFlow.Infrastructure.Contracts;
|
||||
|
||||
namespace WorkFlow.Infrastructure.Repositories
|
||||
{
|
||||
public class ConfigRepository(WFDBContext dbContext) : CRUDRepository<Config, int, WFDBContext>(dbContext, dbContext.Configs), IConfigRepository, ICRUDRepository<Config, int>
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
using DigitalData.Core.Abstractions.Infrastructure;
|
||||
using DigitalData.Core.Infrastructure;
|
||||
using WorkFlow.Domain.Entities;
|
||||
using WorkFlow.Infrastructure.Contracts;
|
||||
|
||||
namespace WorkFlow.Infrastructure.Repositories
|
||||
{
|
||||
public class ProfControlsTfRepository(WFDBContext dbContext) : CRUDRepository<ProfControlsTf, int, WFDBContext>(dbContext, dbContext.ProfControlsTfs), IProfControlsTfRepository, ICRUDRepository<ProfControlsTf, int>
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
using DigitalData.Core.Abstractions.Infrastructure;
|
||||
using DigitalData.Core.Infrastructure;
|
||||
using WorkFlow.Domain.Entities;
|
||||
using WorkFlow.Infrastructure.Contracts;
|
||||
|
||||
namespace WorkFlow.Infrastructure.Repositories
|
||||
{
|
||||
public class ProfileObjStateRepository(WFDBContext dbContext) : CRUDRepository<ProfileObjState, int, WFDBContext>(dbContext, dbContext.ProfileObjStates), IProfileObjStateRepository, ICRUDRepository<ProfileObjState, int>
|
||||
{
|
||||
}
|
||||
}
|
||||
11
WorkFlow.Infrastructure/Repositories/ProfileRepository.cs
Normal file
11
WorkFlow.Infrastructure/Repositories/ProfileRepository.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using DigitalData.Core.Abstractions.Infrastructure;
|
||||
using DigitalData.Core.Infrastructure;
|
||||
using WorkFlow.Domain.Entities;
|
||||
using WorkFlow.Infrastructure.Contracts;
|
||||
|
||||
namespace WorkFlow.Infrastructure.Repositories
|
||||
{
|
||||
public class ProfileRepository(WFDBContext dbContext) : CRUDRepository<Profile, int, WFDBContext>(dbContext, dbContext.Profiles), IProfileRepository, ICRUDRepository<Profile, int>
|
||||
{
|
||||
}
|
||||
}
|
||||
10
WorkFlow.Infrastructure/Repositories/WfStateRepository.cs
Normal file
10
WorkFlow.Infrastructure/Repositories/WfStateRepository.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using DigitalData.Core.Abstractions.Infrastructure;
|
||||
using DigitalData.Core.Infrastructure;
|
||||
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>
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -7,7 +7,7 @@ namespace WorkFlow.Infrastructure
|
||||
{
|
||||
public DbSet<Config> Configs { get; set; }
|
||||
|
||||
public DbSet<ProfControlsTf> ProfControlsTf { get; set; }
|
||||
public DbSet<ProfControlsTf> ProfControlsTfs { get; set; }
|
||||
|
||||
public DbSet<Profile> Profiles { get; set; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user