File: Data\ApplicationDbContext.cs
Web Access
Project: src\src\Identity\samples\IdentitySample.DefaultUI\IdentitySample.DefaultUI.csproj (IdentitySample.DefaultUI)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
 
namespace IdentitySample.DefaultUI.Data;
 
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
    public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
    {
        Database.EnsureCreated();
    }
}