i'm not sure what i'm doing
This commit is contained in:
parent
950babb68c
commit
35331a87f1
7 changed files with 41 additions and 13 deletions
|
|
@ -1,11 +1,12 @@
|
|||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SurveyBackend.Core.Models;
|
||||
|
||||
namespace SurveyBackend.Infrastructure.Data;
|
||||
|
||||
public class DataContext : DbContext
|
||||
public class DataContext : IdentityDbContext<User, IdentityRole<int>, int>
|
||||
{
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<Group> Groups { get; set; }
|
||||
|
||||
public DataContext(DbContextOptions<DataContext> options) : base(options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue