Files
messengerapi/code/MessengerApi.Db.Npg.Migrator/DesignTimeDbContextFactory.cs
masiton 4393977389
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m3s
Build and Push Docker Image / docker (push) Successful in 43s
Initial commit carried over from private repo. This is V2.
2025-07-04 21:24:12 +02:00

14 lines
392 B
C#

using MessengerApi.Db.Npg;
using Microsoft.EntityFrameworkCore.Design;
namespace MessengerApi.Db.Sql.Migrator
{
public partial class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<MessengerNpgDbContext>
{
public MessengerNpgDbContext CreateDbContext(string[] args)
{
return new MessengerNpgDbContext(this.ConnectionString);
}
}
}