using Microsoft.EntityFrameworkCore; using OliverBooth.Data.Blog.Configuration; namespace OliverBooth.Data.Blog; /// /// Represents a session with the blog database. /// internal sealed class BlogContext : DbContext { private readonly IConfiguration _configuration; /// /// Initializes a new instance of the class. /// /// The configuration. public BlogContext(IConfiguration configuration) { _configuration = configuration; } /// /// Gets the collection of blog posts in the database. /// /// The collection of blog posts. public DbSet BlogPosts { get; private set; } = null!; /// /// Gets the collection of templates in the database. /// /// The collection of templates. public DbSet