Fixed EF error, edit commands, fix faction broadcast

This commit is contained in:
hydrant
2018-09-23 15:59:40 +02:00
parent 4631f4bb75
commit bba0f7206c
6 changed files with 82 additions and 27 deletions

11
Main.cs
View File

@@ -30,17 +30,6 @@ namespace reallife_gamemode
context.Factions.FirstOrDefault();
context.Users.FirstOrDefault();
context.SaveChanges();
foreach(Faction f in context.Factions)
{
NAPI.Util.ConsoleOutput(f.Name);
}
foreach(User u in context.Users.Include(x => x.Faction))
{
Faction f = u.Faction;
NAPI.Util.ConsoleOutput("User: " + u.Name + " | Faction: " + (f == null ? "null" : f.Name));
}
}
}
}