This commit is contained in:
24
test-aspnetcore/src/Infra/AppDbContext.cs
Executable file
24
test-aspnetcore/src/Infra/AppDbContext.cs
Executable file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user