add lazy loading for entities

This commit is contained in:
hydrant
2019-05-13 12:51:56 +02:00
parent d87bbd5a9c
commit ac6e4b51a9
23 changed files with 1308 additions and 28 deletions

View File

@@ -14,7 +14,7 @@ namespace ReallifeGamemode.Server.Entities
[ForeignKey("Vehicle")]
public int ServerVehicleId { get; set; }
public ServerVehicle Vehicle { get; set; }
public virtual ServerVehicle Vehicle { get; set; }
public int Slot { get; set; }
public int ModId { get; set; }