Improve
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user