Revert "changes LiebContext, renamed User to LiebUser"

This reverts commit 7b44e41eb2.
This commit is contained in:
t.ruspekhofer 2022-02-20 15:48:20 +01:00
parent 31a0e20f1d
commit e0fd579c00
12 changed files with 20 additions and 31 deletions

View file

@ -6,18 +6,17 @@ using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Lieb.Models;
using Lieb.Models.Raid;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
namespace Lieb.Data
{
public class LiebContext : IdentityDbContext<LiebUser>
{
public LiebContext (DbContextOptions<LiebContext> options)
public class LiebContext : DbContext
{
public LiebContext (DbContextOptions<LiebContext> options)
: base(options)
{
}
public DbSet<LiebUser> Users { get; set; }
public DbSet<User> Users { get; set; }
public DbSet<GuildWars2Account> GuildWars2Account { get; set; }
public DbSet<Equipped> Equipped { get; set; }
public DbSet<RaidRole> RaidRoles { get; set; }
@ -32,8 +31,7 @@ namespace Lieb.Data
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<LiebUser>().ToTable("User");
modelBuilder.Entity<User>().ToTable("User");
modelBuilder.Entity<GuildWars2Account>().ToTable("GuildWars2Account");
modelBuilder.Entity<Equipped>().ToTable("Equipped");
modelBuilder.Entity<RaidRole>().ToTable("RaidRole");