Entity Framework Core

Navigation Property

[ForeignKey("Villa")]

public int VillaId { get; set; }

public Villa Villa { get; set; }

------------------------------------------

public int VillaId { get; set; }

[ForeignKey("VillaId")]

public Villa Villa { get; set; }