mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
- Implemented WwpcImportReviewDialog for reviewing pending software imports from WinWorldPC. - Created WwpcImportsQueue page for managing the import queue with filtering options. - Added WwpcImportsService to handle API interactions for WinWorldPC imports. - Updated navigation menu to include a link to the WinWorldPC Imports page. - Added localization support for the new imports feature in German, Spanish, French, Italian, and Dutch.
19 lines
602 B
C#
19 lines
602 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Marechai.Database.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Marechai.WinWorld;
|
|
|
|
public class MarechaiContextFactory : IDbContextFactory<MarechaiContext>
|
|
{
|
|
readonly DbContextOptions<MarechaiContext> _options;
|
|
|
|
public MarechaiContextFactory(DbContextOptions<MarechaiContext> options) => _options = options;
|
|
|
|
public MarechaiContext CreateDbContext() => new(_options);
|
|
|
|
public Task<MarechaiContext> CreateDbContextAsync(CancellationToken cancellationToken = default) =>
|
|
Task.FromResult(CreateDbContext());
|
|
}
|