Suppression Challonge in Db.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace LaDOSE.Entity.Challonge
|
||||
{
|
||||
public class ChallongeParticipent : Context.Entity
|
||||
|
||||
public class ChallongeParticipent
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public ChallongeTournament ChallongeTournament { get; set; }
|
||||
public int ChallongeTournamentId { get; set; }
|
||||
public int ChallongeId { get; set; }
|
||||
|
||||
@@ -3,8 +3,9 @@ using System.Collections.Generic;
|
||||
|
||||
namespace LaDOSE.Entity.Challonge
|
||||
{
|
||||
public class ChallongeTournament : Context.Entity
|
||||
public class ChallongeTournament
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ChallongeId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Game Game { get; set; }
|
||||
|
||||
@@ -29,8 +29,8 @@ namespace LaDOSE.Entity.Context
|
||||
public DbSet<Set> Set { get; set; }
|
||||
|
||||
#endregion
|
||||
public DbSet<ChallongeParticipent> ChallongeParticipent { get; set; }
|
||||
public DbSet<ChallongeTournament> ChallongeTournament { get; set; }
|
||||
//public DbSet<ChallongeParticipent> ChallongeParticipent { get; set; }
|
||||
//public DbSet<ChallongeTournament> ChallongeTournament { get; set; }
|
||||
|
||||
#region BotEvents
|
||||
public DbSet<BotEvent.BotEvent> BotEvent { get; set; }
|
||||
@@ -47,7 +47,6 @@ namespace LaDOSE.Entity.Context
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity<Event>()
|
||||
.HasMany(s => s.Tournaments);
|
||||
|
||||
@@ -139,12 +138,12 @@ namespace LaDOSE.Entity.Context
|
||||
.HasForeignKey(pt => pt.WPUserId);
|
||||
#endregion
|
||||
|
||||
#region Challonge
|
||||
modelBuilder.Entity<ChallongeParticipent>()
|
||||
.HasOne(pt => pt.ChallongeTournament)
|
||||
.WithMany(p => p.Participents)
|
||||
.HasForeignKey(pt => pt.ChallongeTournamentId);
|
||||
#endregion
|
||||
//#region Challonge
|
||||
//modelBuilder.Entity<ChallongeParticipent>()
|
||||
// .HasOne(pt => pt.ChallongeTournament)
|
||||
// .WithMany(p => p.Participents)
|
||||
// .HasForeignKey(pt => pt.ChallongeTournamentId);
|
||||
//#endregion
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user