2023-08-25 15:05:03 +09:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using SharedData.Models;
|
|
|
|
|
|
|
|
|
|
namespace WebAPI.Data
|
|
|
|
|
{
|
|
|
|
|
public class ApplicationDbContext : DbContext
|
|
|
|
|
{
|
|
|
|
|
public DbSet<GameResult> GameResults { get; set; }
|
2023-08-28 13:30:53 +09:00
|
|
|
|
public DbSet<Book> Books { get; set; }
|
|
|
|
|
public DbSet<Review> Reviews { get; set; }
|
2023-08-25 15:05:03 +09:00
|
|
|
|
|
|
|
|
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
|
|
|
|
: base(options)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|