using Microsoft.EntityFrameworkCore; using Vegasco.Server.Api.Cars; using Vegasco.Server.Api.Common; using Vegasco.Server.Api.Consumptions; using Vegasco.Server.Api.Users; namespace Vegasco.Server.Api.Persistence; public class ApplicationDbContext(DbContextOptions options) : DbContext(options) { public DbSet Cars { get; set; } public DbSet Users { get; set; } public DbSet Consumptions { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.ApplyConfigurationsFromAssembly(typeof(IApiMarker).Assembly); } }