All checks were successful
continuous-integration/drone/push Build is passing
And update all references including comments etc.
23 lines
650 B
C#
23 lines
650 B
C#
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<ApplicationDbContext> options) : DbContext(options)
|
|
{
|
|
public DbSet<Car> Cars { get; set; }
|
|
|
|
public DbSet<User> Users { get; set; }
|
|
|
|
public DbSet<Consumption> Consumptions { get; set; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
modelBuilder.ApplyConfigurationsFromAssembly(typeof(IApiMarker).Assembly);
|
|
}
|
|
}
|