29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.AspNetCore.Identity.Service;
|
|
using Microsoft.AspNetCore.Identity.Service.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using IdentityOIDCWebApplicationSample.Identity.Models;
|
|
|
|
namespace IdentityOIDCWebApplicationSample.Identity.Data
|
|
{
|
|
public class IdentityServiceDbContext : IdentityServiceDbContext<ApplicationUser, IdentityServiceApplication>
|
|
{
|
|
public IdentityServiceDbContext(DbContextOptions<IdentityServiceDbContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|