instruments & global positioning

This commit is contained in:
Paul Schneider 2019-08-20 16:49:38 +01:00
commit 2878f6b8db
27 changed files with 6633 additions and 125 deletions

View file

@ -8,7 +8,14 @@ namespace Yavsc.Models.Musical
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; }
public Instrument Instrument { get; set; }
[Required]
public long InstrumentId { get; set; }
[ForeignKey("InstrumentId")]
public virtual Instrument Instrument { get; set; }
[Range(-100,100)]
public int Rate { get; set; }
public string OwnerId { get; set; }

View file

@ -9,4 +9,4 @@ namespace Yavsc.Models.Musical.Profiles
[InverseProperty("WorkingFor")]
public virtual List<CoWorking> CoWorking { get; set; }
}
}
}