New: Report-System using globally available Interfaces.
This commit is contained in:
24
Server/Repository/ReportingSystem/ReportingContext.cs
Normal file
24
Server/Repository/ReportingSystem/ReportingContext.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Oqtane.Modules;
|
||||
using Oqtane.Repository;
|
||||
using Oqtane.Infrastructure;
|
||||
using Oqtane.Repository.Databases.Interfaces;
|
||||
using SZUAbsolventenverein.Module.ReportSystem.Models;
|
||||
|
||||
namespace SZUAbsolventenverein.Module.AdminModules.Repository
|
||||
{
|
||||
public class ReportingContext : DBContextBase, ITransientService, IMultiDatabase
|
||||
{
|
||||
public virtual DbSet<Reporting> Reportings { get; set; }
|
||||
|
||||
public ReportingContext(IDBContextDependencies DBContextDependencies) : base(DBContextDependencies)
|
||||
{}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
base.OnModelCreating(builder);
|
||||
builder.Entity<Reporting>().ToTable(ActiveDatabase.RewriteName("SZUAbsolventenvereinReportings"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user