22 lines
531 B
C#
22 lines
531 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Nexus.Domain.Entities;
|
|
|
|
namespace Nexus.Infrastructure.Persistence;
|
|
public class NexusDbContext : DbContext
|
|
{
|
|
public NexusDbContext(DbContextOptions<NexusDbContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.ApplyConfigurationsFromAssembly(typeof(NexusDbContext).Assembly);
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
|
|
public DbSet<Project> Projects => Set<Project>();
|
|
}
|
|
|
|
|