This commit is contained in:
hydrant
2020-03-17 20:21:30 +01:00
parent b7ac8d98f4
commit e6c8c5b3fa

View File

@@ -15,7 +15,7 @@ namespace ReallifeGamemode.Database.Entities
public override string ToString()
{
using (var dbContext = new DatabaseContext())
return "Gruppen Fahrzeug | Gruppe: " + dbContext.GroupVehicles.Include(g => g.Group).First(g => g.Id == this.Id).Group.Name;
return "Gruppen Fahrzeug | Gruppe: " + dbContext.Groups.First(g => g.Id == GroupId).Name;
}
}
}