BlazorStart/Start/Server/Data/ApplicationDbContext.cs
2021-11-12 19:21:59 -08:00

24 lines
800 B
C#

using Start.Server.Models;
using IdentityServer4.EntityFramework.Options;
using Microsoft.AspNetCore.ApiAuthorization.IdentityServer;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Start.Server.Data {
public class ApplicationDbContext : ApiAuthorizationDbContext<ApplicationUser> {
public DbSet<Bookmark> Bookmarks => Set<Bookmark>();
public DbSet<BookmarkGroup> BookmarkGroups => Set<BookmarkGroup>();
public DbSet<BookmarkContainer> BookmarkContainers => Set<BookmarkContainer>();
public ApplicationDbContext(DbContextOptions options,
IOptions<OperationalStoreOptions> operationalStoreOptions)
: base(options, operationalStoreOptions) {
}
}
}