Files
DevOps/Data/ApplicationDbContext.cs
Christopher Sanden b837e1aad2 restructured filetree
2026-04-05 16:30:57 +02:00

18 lines
467 B
C#

using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Example.Models;
namespace Example.Data;
public class ApplicationDbContext : IdentityDbContext
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
: base(options)
{
}
public DbSet<Author> Authors => Set<Author>();
public DbSet<Book> Books => Set<Book>();
public DbSet<Review> Reviews => Set<Review>();
}