using Microsoft.EntityFrameworkCore; using OliverBooth.Data.Web.Configuration; namespace OliverBooth.Data.Web; /// /// Represents a session with the web database. /// public sealed class WebContext : DbContext { private readonly IConfiguration _configuration; /// /// Initializes a new instance of the class. /// /// The configuration. public WebContext(IConfiguration configuration) { _configuration = configuration; } /// /// Gets the set of site configuration items. /// /// The set of site configuration items. public DbSet SiteConfiguration { get; private set; } = null!; /// /// Gets the collection of templates in the database. /// /// The collection of templates. public DbSet