fronted: login
This commit is contained in:
@@ -6,8 +6,9 @@ namespace back.context;
|
||||
public class PersonContext : DbContext
|
||||
{
|
||||
private DbSet<PersonModel> Persons { get; set; }
|
||||
public PersonContext(DbContextOptions<PersonContext> options)
|
||||
public PersonContext(DbContextOptions<PersonContext> options) : base(options)
|
||||
{
|
||||
// Ensure database is created
|
||||
Database.EnsureCreated();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user