You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
958 B
23 lines
958 B
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Mvc.Server.Models {
|
|
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> {
|
|
public ApplicationDbContext(DbContextOptions options)
|
|
: base(options) { }
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder) {
|
|
// Register the entity sets needed by OpenIddict.
|
|
// Note: use the generic overload if you need
|
|
// to replace the default OpenIddict entities.
|
|
builder.UseOpenIddict();
|
|
|
|
base.OnModelCreating(builder);
|
|
|
|
// Customize the ASP.NET Identity model and override the defaults if needed.
|
|
// For example, you can rename the ASP.NET Identity table names and more.
|
|
// Add your customizations after calling base.OnModelCreating(builder);
|
|
}
|
|
}
|
|
}
|
|
|