I have 2 tables which are builds and accounts. Each user can have more than 1 builds but builds can have only one account. I can see the build owner on the mysql workbench but I can't see the builds of the account. Is there any way to solve this?
public class AccountModel
{
public Guid ID { get; set; }
public string Username { get; set; }
public int Password { get; set; }
public ICollection<BuildModel> builds { get; set; }
}
and:
public class BuildModel
{
public Guid ID { get; set; }
public int Damage { get; set; }
public string WeaponName { get; set; }
public AccountModel ownerOfTheBuild { get; set; }
}
Edit: Forgot to mention that I can access the builds data via the coding, just can't see on the workbench.