This commit is contained in:
commit
0e79a8eb5e
43 changed files with 1282 additions and 0 deletions
19
src/Infra/AppDbContext.cs
Executable file
19
src/Infra/AppDbContext.cs
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace TestWeb.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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue