chore(infrastructure): Core-Bibliotheken und UserManager.Infrastructure auf 2.0.0.0 aktualisiert
- Core-Bibliotheken und UserManager.Infrastructure im Infrastructure-Layer auf Version 2.0.0.0 erhöht. - DbSet-Eigenschaften aus DbContext injiziert.
This commit is contained in:
parent
f95f3c7b1b
commit
6b3e6cd6f5
@ -15,12 +15,35 @@ namespace EnvelopeGenerator.Infrastructure
|
|||||||
|
|
||||||
public DbSet<Envelope> Envelopes { get; set; }
|
public DbSet<Envelope> Envelopes { get; set; }
|
||||||
|
|
||||||
|
public DbSet<DocumentReceiverElement> DocumentReceiverElements { get; set; }
|
||||||
|
|
||||||
|
public DbSet<DocumentStatus> DocumentStatus { get; set; }
|
||||||
|
|
||||||
|
public DbSet<EmailTemplate> EmailTemplate { get; set; }
|
||||||
|
|
||||||
|
public DbSet<EnvelopeCertificate> EnvelopeCertificates { get; set; }
|
||||||
|
|
||||||
|
public DbSet<EnvelopeDocument> EnvelopeDocument { get; set; }
|
||||||
|
|
||||||
|
public DbSet<EnvelopeHistory> EnvelopeHistories { get; set; }
|
||||||
|
|
||||||
|
public DbSet<EnvelopeType> EnvelopeTypes { get; set; }
|
||||||
|
|
||||||
|
public DbSet<Receiver> Receivers { get; set; }
|
||||||
|
|
||||||
public EGDbContext(DbContextOptions<EGDbContext> options) : base(options)
|
public EGDbContext(DbContextOptions<EGDbContext> options) : base(options)
|
||||||
{
|
{
|
||||||
UserReceivers = Set<UserReceiver>();
|
UserReceivers = Set<UserReceiver>();
|
||||||
Configs = Set<Config>();
|
Configs = Set<Config>();
|
||||||
EnvelopeReceivers = Set<EnvelopeReceiver>();
|
EnvelopeReceivers = Set<EnvelopeReceiver>();
|
||||||
Envelopes = Set<Envelope>();
|
Envelopes = Set<Envelope>();
|
||||||
|
DocumentReceiverElements = Set<DocumentReceiverElement>();
|
||||||
|
DocumentStatus = Set<DocumentStatus>();
|
||||||
|
EnvelopeCertificates = Set<EnvelopeCertificate>();
|
||||||
|
EnvelopeDocument = Set<EnvelopeDocument>();
|
||||||
|
EnvelopeHistories = Set<EnvelopeHistory>();
|
||||||
|
EnvelopeTypes = Set<EnvelopeType>();
|
||||||
|
Receivers = Set<Receiver>();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.15" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.15" />
|
||||||
<PackageReference Include="UserManager.Infrastructure" Version="1.0.0" />
|
<PackageReference Include="UserManager.Infrastructure" Version="2.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class DocumentReceiverElementRepository : CRUDRepository<DocumentReceiverElement, int, EGDbContext>, IDocumentReceiverElementRepository
|
public class DocumentReceiverElementRepository : CRUDRepository<DocumentReceiverElement, int, EGDbContext>, IDocumentReceiverElementRepository
|
||||||
{
|
{
|
||||||
public DocumentReceiverElementRepository(EGDbContext dbContext) : base(dbContext)
|
public DocumentReceiverElementRepository(EGDbContext dbContext) : base(dbContext, dbContext.DocumentReceiverElements)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class DocumentStatusRepository : CRUDRepository<DocumentStatus, int, EGDbContext>, IDocumentStatusRepository
|
public class DocumentStatusRepository : CRUDRepository<DocumentStatus, int, EGDbContext>, IDocumentStatusRepository
|
||||||
{
|
{
|
||||||
public DocumentStatusRepository(EGDbContext dbContext) : base(dbContext)
|
public DocumentStatusRepository(EGDbContext dbContext) : base(dbContext, dbContext.DocumentStatus)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,7 +12,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
private readonly IMemoryCache _cache;
|
private readonly IMemoryCache _cache;
|
||||||
|
|
||||||
public EmailTemplateRepository(EGDbContext dbContext, IMemoryCache cache) : base(dbContext)
|
public EmailTemplateRepository(EGDbContext dbContext, IMemoryCache cache) : base(dbContext, dbContext.EmailTemplate)
|
||||||
{
|
{
|
||||||
_cache = cache;
|
_cache = cache;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class EnvelopeCertificateRepository : CRUDRepository<EnvelopeCertificate, int, EGDbContext>, IEnvelopeCertificateRepository
|
public class EnvelopeCertificateRepository : CRUDRepository<EnvelopeCertificate, int, EGDbContext>, IEnvelopeCertificateRepository
|
||||||
{
|
{
|
||||||
public EnvelopeCertificateRepository(EGDbContext dbContext) : base(dbContext)
|
public EnvelopeCertificateRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeCertificates)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class EnvelopeDocumentRepository : CRUDRepository<EnvelopeDocument, int, EGDbContext>, IEnvelopeDocumentRepository
|
public class EnvelopeDocumentRepository : CRUDRepository<EnvelopeDocument, int, EGDbContext>, IEnvelopeDocumentRepository
|
||||||
{
|
{
|
||||||
public EnvelopeDocumentRepository(EGDbContext dbContext) : base(dbContext)
|
public EnvelopeDocumentRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeDocument)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class EnvelopeHistoryRepository : CRUDRepository<EnvelopeHistory, long, EGDbContext>, IEnvelopeHistoryRepository
|
public class EnvelopeHistoryRepository : CRUDRepository<EnvelopeHistory, long, EGDbContext>, IEnvelopeHistoryRepository
|
||||||
{
|
{
|
||||||
public EnvelopeHistoryRepository(EGDbContext dbContext) : base(dbContext)
|
public EnvelopeHistoryRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeHistories)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class EnvelopeTypeRepository : CRUDRepository<EnvelopeType, int, EGDbContext>, IEnvelopeTypeRepository
|
public class EnvelopeTypeRepository : CRUDRepository<EnvelopeType, int, EGDbContext>, IEnvelopeTypeRepository
|
||||||
{
|
{
|
||||||
public EnvelopeTypeRepository(EGDbContext dbContext) : base(dbContext)
|
public EnvelopeTypeRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeTypes)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace EnvelopeGenerator.Infrastructure.Repositories
|
|||||||
{
|
{
|
||||||
public class ReceiverRepository : CRUDRepository<Receiver, int, EGDbContext>, IReceiverRepository
|
public class ReceiverRepository : CRUDRepository<Receiver, int, EGDbContext>, IReceiverRepository
|
||||||
{
|
{
|
||||||
public ReceiverRepository(EGDbContext dbContext) : base(dbContext)
|
public ReceiverRepository(EGDbContext dbContext) : base(dbContext, dbContext.Receivers)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user