25 lines
471 B
C#
Executable File
25 lines
471 B
C#
Executable File
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace TestAspNetCore.Infra;
|
|
|
|
public class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
|
|
{
|
|
public DbSet<Job> Jobs
|
|
{
|
|
get; set;
|
|
}
|
|
public DbSet<User> Users
|
|
{
|
|
get; set;
|
|
}
|
|
public DbSet<Vehicle> Vehicles
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
}
|