- Added image upload system (JPG/PNG, max 5MB) with live preview and removal option - Fixed Concurrency Exception during deletion (split transactions for reports and entries) - Optimized card layout: consistent height and height-based truncation for descriptions - Added sort direction toggle (Ascending/Descending) with arrow icons for Date, Name, and Year - Refactored HallOfFameService to use streams for Server/Wasm compatibility - Improved error handling and UI feedback for upload and delete operations
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Oqtane.Modules;
|
|
using Oqtane.Repository;
|
|
using Oqtane.Infrastructure;
|
|
using Oqtane.Repository.Databases.Interfaces;
|
|
|
|
namespace SZUAbsolventenverein.Module.HallOfFame.Repository
|
|
{
|
|
public class HallOfFameContext : DBContextBase, ITransientService, IMultiDatabase
|
|
{
|
|
public virtual DbSet<Models.HallOfFame> HallOfFame { get; set; }
|
|
public virtual DbSet<Models.HallOfFameReport> HallOfFameReport { get; set; }
|
|
|
|
public HallOfFameContext(IDBContextDependencies DBContextDependencies) : base(DBContextDependencies)
|
|
{
|
|
// ContextBase handles multi-tenant database connections
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
base.OnModelCreating(builder);
|
|
|
|
builder.Entity<Models.HallOfFame>().ToTable(ActiveDatabase.RewriteName("SZUAbsolventenvereinHallOfFame"));
|
|
builder.Entity<Models.HallOfFameReport>().ToTable(ActiveDatabase.RewriteName("SZUAbsolventenvereinHallOfFameReport"));
|
|
}
|
|
}
|
|
}
|