2017-09-13 14:53:06 +02:00
|
|
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
2016-11-24 15:31:33 +01:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2017-09-13 14:53:06 +02:00
|
|
|
|
using Microsoft.eShopOnContainers.Services.Identity.API.Models;
|
2016-11-24 15:31:33 +01:00
|
|
|
|
|
2017-09-13 14:53:06 +02:00
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Identity.API.Data
|
2016-11-24 15:31:33 +01:00
|
|
|
|
{
|
|
|
|
|
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
|
|
|
|
{
|
|
|
|
|
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|