using Microsoft.EntityFrameworkCore; using Vegasco.WebApi.Cars; using Vegasco.WebApi.Common; using Vegasco.WebApi.Consumptions; using Vegasco.WebApi.Users; namespace Vegasco.WebApi.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(IWebApiMarker).Assembly); } }