Files
TenWholeYears.Server/RecNet.Infrastructure/Persistence/DatabaseContext.cs
2026-06-18 13:15:27 -05:00

15 lines
446 B
C#

using Microsoft.EntityFrameworkCore;
using RecNet.Domain.Entities.Profiles;
namespace RecNet.Infrastructure.Persistence;
public class DatabaseContext(DbContextOptions<DatabaseContext> options) : DbContext(options)
{
public DbSet<Profile> Profiles => Set<Profile>();
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfigurationsFromAssembly(typeof(DatabaseContext).Assembly);
}
}