mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add ASP.NET Identity.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/******************************************************************************
|
||||
/******************************************************************************
|
||||
// Canary Islands Computer Museum Website
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -28,11 +28,12 @@
|
||||
// Copyright © 2003-2018 Natalia Portillo
|
||||
*******************************************************************************/
|
||||
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Cicm.Database.Models
|
||||
{
|
||||
public class cicmContext : DbContext
|
||||
public class cicmContext : IdentityDbContext
|
||||
{
|
||||
public cicmContext() { }
|
||||
|
||||
@@ -79,6 +80,8 @@ namespace Cicm.Database.Models
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
||||
modelBuilder.Entity<Admin>(entity =>
|
||||
{
|
||||
entity.ToTable("admins");
|
||||
|
||||
Reference in New Issue
Block a user