View difference between Paste ID: 0siZiTLn and f2sdatP9
SHOW: | | - or go back to the newest paste.
1-
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
1+
2-
using Microsoft.EntityFrameworkCore;
2+
3-
using Microsoft.Extensions.Configuration;
3+
4
            base.OnModelCreating(modelBuilder);
5-
using ProbeSeeker.Models;
5+
6-
using System.IO;
6+
7
                .HasKey(ur => new { ur.UserId, ur.RoleId });
8-
namespace DatabaseConnection.Models
8+
9-
{
9+
10-
    public class DataContext : IdentityDbContext
10+
11-
    {
11+
                .HasForeignKey(ur => ur.UserId);
12-
        public DataContext() :
12+
13-
            base()
13+
14-
        { }
14+
15
                .HasForeignKey(ur => ur.RoleId);
16-
        public DataContext(DbContextOptions<DataContext> options) :
16+
        }