Skip to content

Commit

Permalink
email confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystianKempski committed Apr 30, 2024
1 parent 3b8cc0d commit 108b5d5
Show file tree
Hide file tree
Showing 10 changed files with 974 additions and 62 deletions.
2 changes: 1 addition & 1 deletion DA_DataAccess/ApplicationUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace DA_DataAccess
{
public class ApplicationUser : IdentityUser
{
public string PlayerType { get; set; }
public string Name { get; set; }

}
}
20 changes: 0 additions & 20 deletions DA_DataAccess/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);

//modelBuilder.Entity<Profession>()
// .HasMany(x => x.ActiveSkills)
// .WithOne(y => y.Profession)
// .HasForeignKey(e=>e.ProfessionId);

//modelBuilder.Entity<Profession>()
// .HasMany(x => x.PasiveSkills)
// .WithOne(y => y.Profession)
// .HasForeignKey(e => e.ProfessionId);

modelBuilder.Entity<ProfessionSkill>()
.HasOne(a => a.ActiveProfession)
.WithMany(y => y.ActiveSkills)
Expand All @@ -51,16 +41,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.HasOne(a => a.PassiveProfession)
.WithMany(y => y.PassiveSkills)
.HasForeignKey(a => a.PassiveProfessionId).OnDelete(DeleteBehavior.NoAction);

//modelBuilder.Entity<Character>()
// .HasOne(x => x.Race)
// .WithMany(y => y.Characters)
// .UsingEntity(j => j.ToTable("CharacterRace"));

//modelBuilder.Entity<Race>()
// .HasMany(x => x.Traits)
// .WithMany(y => y.Races)
// .UsingEntity(j => j.ToTable("RaceTrait"));
}
}
}
Loading

0 comments on commit 108b5d5

Please sign in to comment.