initial appdbcontext
This commit is contained in:
1 parent
9a3b6035b0
commit
41e4407f3f
1 file changed
+13
@@ -0,0 +1,13 @@
|
||||
using api.Domain;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace api.Data
|
||||
{
|
||||
public class AppDbContext : DbContext
|
||||
{
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
public DbSet<Person> Persons { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user