instruments & global positioning

This commit is contained in:
2019-08-20 16:49:38 +01:00
parent ca8d821ebf
commit 9a17dcf017
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; }
}
}
}

View File

@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Workflow.Profiles
{
@ -15,5 +16,8 @@ namespace Yavsc.Models.Workflow.Profiles
get; set;
}
[YaStringLength(1024)]
public string DisplayName { get; set; }
}
}