initial commit
This commit is contained in:
16
Data/ApplicationDbContext.cs
Normal file
16
Data/ApplicationDbContext.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using pet_companion_api.Models;
|
||||
|
||||
namespace pet_companion_api.Data
|
||||
{
|
||||
public class ApplicationDbContext : DbContext
|
||||
{
|
||||
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<Pet> Pets { get; set; }
|
||||
public DbSet<PetStats> PetStats { get; set; }
|
||||
public DbSet<Resources> Resources { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user