2022-04-28 15:57:58 +00:00
|
|
|
|
using Start.Server.Models;
|
2021-11-13 03:21:59 +00:00
|
|
|
|
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;
|
2022-04-28 15:57:58 +00:00
|
|
|
|
using Duende.IdentityServer.EntityFramework.Options;
|
2021-11-13 03:21:59 +00:00
|
|
|
|
|
|
|
|
|
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) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|