All checks were successful
Build / build (push) Successful in 2m19s
Slips werden jetzt 30 Sekunden vorgehalten und anschließend automatisch abgeschlossen; direkte Spieler-Beschuldigungen, Win-Status, SignalR-Events, MAUI-UI, EF-Mapping/Migrationen sowie Tests wurden an die neue Spiellogik angepasst.
15 lines
527 B
C#
15 lines
527 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Design;
|
|
|
|
namespace SlipItIn.Server.Data;
|
|
|
|
public class SlipItInDbContextFactory : IDesignTimeDbContextFactory<SlipItInDbContext>
|
|
{
|
|
public SlipItInDbContext CreateDbContext(string[] args)
|
|
{
|
|
var optionsBuilder = new DbContextOptionsBuilder<SlipItInDbContext>();
|
|
optionsBuilder.UseNpgsql("Host=localhost;Database=slipitindb;Username=postgres;Password=postgres");
|
|
return new SlipItInDbContext(optionsBuilder.Options);
|
|
}
|
|
}
|