dot-net/Model/ApplicationDbContext.cs

17 lines
431 B
C#
Raw Normal View History

2025-01-11 23:30:12 +00:00
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace Trazo.Model;
public class ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : IdentityDbContext(options)
{
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Entity<User>();
builder.HasDefaultSchema("identity");
}
}