Merge
This commit is contained in:
commit
c0f3edfdda
18 changed files with 142 additions and 28 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ namespace Yavsc.Models.Booking
|
|||
|
||||
[Required]
|
||||
public long TendencyId {get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
15
Yavsc/Models/Booking/Profiles/DjPerformerProfile.cs
Normal file
15
Yavsc/Models/Booking/Profiles/DjPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
{
|
||||
public class DjPerformerProfile : SpecializationSettings
|
||||
{
|
||||
public string SoundCloudId { get; set; }
|
||||
|
||||
[InverseProperty("OwnerProfile")]
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
12
Yavsc/Models/Booking/Profiles/FormationPerformerProfile.cs
Normal file
12
Yavsc/Models/Booking/Profiles/FormationPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking.Profiles
|
||||
{
|
||||
public class FormationPerformerProfile
|
||||
{
|
||||
[InverseProperty("WorkingFor")]
|
||||
public virtual List<CoWorking> CoWorking { get; set; }
|
||||
}
|
||||
}
|
||||
14
Yavsc/Models/Booking/Profiles/MusicianPerformerProfile.cs
Normal file
14
Yavsc/Models/Booking/Profiles/MusicianPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
{
|
||||
public class MusicianPerformerProfile : PerformerProfile
|
||||
{
|
||||
[InverseProperty("Profile")]
|
||||
public virtual List<InstrumentRating> Instrumentation {
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Yavsc/Models/Booking/Profiles/StarPerformerProfile.cs
Normal file
12
Yavsc/Models/Booking/Profiles/StarPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking.Profiles
|
||||
{
|
||||
public class StarPerformerProfile : PerformerProfile
|
||||
{
|
||||
[InverseProperty("OwnerProfile")]
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -53,7 +53,6 @@ namespace Yavsc.Models
|
|||
/// </summary>
|
||||
[Range(0,100)]
|
||||
public int Rate { get; set; }
|
||||
|
||||
[DisplayAttribute(Name="SettingsClass")]
|
||||
public string SettingsClassName { get; set; }
|
||||
}
|
||||
|
|
|
|||
15
Yavsc/Models/Workflow/Specialization.cs
Normal file
15
Yavsc/Models/Workflow/Specialization.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
public abstract class SpecializationSettings
|
||||
{
|
||||
[Key]
|
||||
public long UserActivityId { get; set; }
|
||||
|
||||
[ForeignKey("UserActivityId")]
|
||||
public virtual UserActivity Context { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -19,6 +19,5 @@ namespace Yavsc.Models.Workflow
|
|||
|
||||
[Range(0,100)]
|
||||
public int Weight { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue