blob: 067c024311b7187f649216d3586da0139fba3221 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using PCC.Data.Models;
using PCC.Data.Models.Parts;
namespace PCC.Data
{
public class PCCDbContext : IdentityDbContext<PCCUser, IdentityRole, string>
{
public DbSet<Setting> Settings { get; set; }
public DbSet<ParameterSettings> ParameterSettings { get; set; }
public DbSet<Software> Softwares { get; set; }
public DbSet<GPU> GPUs { get; set; }
public DbSet<HardDisk> HardDisks { get; set; }
public DbSet<Motherboard> Motherboards { get; set; }
public DbSet<PowerSupply> PowerSupplies { get; set; }
public DbSet<Processor> Processors { get; set; }
public DbSet<RAM> RAMs { get; set; }
public PCCDbContext(DbContextOptions<PCCDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
}
}
}
|