mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-30 02:31:08 +00:00
19 lines
542 B
C#
19 lines
542 B
C#
using CleanArchitecture.Domain.Entities;
|
|
using CleanArchitecture.Infrastructure.Configurations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace CleanArchitecture.Infrastructure.Database;
|
|
|
|
public class ApplicationDbContext : DbContext
|
|
{
|
|
public DbSet<User> Users { get; set; } = null!;
|
|
|
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
builder.ApplyConfiguration(new UserConfiguration());
|
|
}
|
|
} |