16 lines
No EOL
459 B
C#
16 lines
No EOL
459 B
C#
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using SurveyBackend.Core.Models;
|
|
|
|
namespace SurveyBackend.Infrastructure.Data;
|
|
|
|
public class DataContext : IdentityDbContext<User, IdentityRole<int>, int>
|
|
{
|
|
public DbSet<Group> Groups { get; set; }
|
|
|
|
public DataContext(DbContextOptions<DataContext> options) : base(options)
|
|
{
|
|
Database.EnsureCreated();
|
|
}
|
|
} |