Initial commit carried over from private repo. This is V2.
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user