instruments & global positioning
This commit is contained in:
@ -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; }
|
||||
|
@ -9,4 +9,4 @@ namespace Yavsc.Models.Musical.Profiles
|
||||
[InverseProperty("WorkingFor")]
|
||||
public virtual List<CoWorking> CoWorking { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user