in order to use EF7 commands

This commit is contained in:
2018-04-18 18:15:40 +02:00
parent 86fa893796
commit bef5c2abe5
474 changed files with 316 additions and 181 deletions

View File

@ -1,15 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Musical
{
public class Instrument
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; }
[MaxLength(255),Required]
public string Name { get ; set; }
}
}

View File

@ -1,20 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Musical
{
public class InstrumentRating
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; }
public Instrument Instrument { get; set; }
public int Rate { get; set; }
public string OwnerId { get; set; }
[ForeignKey("OwnerId")]
public virtual PerformerProfile Profile { get; set; }
}
}

View File

@ -1,22 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Musical
{
public class MusicalPreference {
[Key]
public string OwnerProfileId
{
get; set;
}
public int Rate { get; set; }
[Required]
public long TendencyId {get; set; }
}
}

View File

@ -1,21 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Musical {
public class MusicalTendency {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; }
[MaxLength(255),Required]
public string Name { get ; set; }
}
}

View File

@ -1,15 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Musical
{
public class DjPerformerProfile : SpecializationSettings
{
public string SoundCloudId { get; set; }
[InverseProperty("OwnerProfile")]
public virtual List<MusicalPreference> SoundColor { get; set; }
}
}

View File

@ -1,20 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Musical.Profiles
{
public class DjSettings : ISpecializationSettings
{
public string SoundCloudId { get; set; }
public virtual List<MusicalPreference> SoundColor { get; set; }
[Key]
public string UserId
{
get; set;
}
}
}

View File

@ -1,12 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Musical.Profiles
{
public class FormationPerformerProfile
{
[InverseProperty("WorkingFor")]
public virtual List<CoWorking> CoWorking { get; set; }
}
}

View File

@ -1,15 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Musical.Profiles
{
public class GeneralSettings : ISpecializationSettings
{
public virtual List<MusicalPreference> SoundColor { get; set; }
[Key]
public string UserId
{
get; set;
}
}
}

View File

@ -1,20 +0,0 @@
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Musical.Profiles
{
public class Instrumentation : ISpecializationSettings
{
public string UserId
{
get; set;
}
[ForeignKeyAttribute("UserId")]
public virtual PerformerProfile User { get; set; }
public long InstrumentId { get; set; }
[ForeignKeyAttribute("InstrumentId")]
public virtual Instrument Tool { get; set; }
}
}

View File

@ -1,14 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Musical
{
public class MusicianPerformerProfile : PerformerProfile
{
[InverseProperty("Profile")]
public virtual List<InstrumentRating> Instrumentation {
get; set;
}
}
}

View File

@ -1,12 +0,0 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Musical.Profiles
{
public class StarPerformerProfile : PerformerProfile
{
[InverseProperty("OwnerProfile")]
public virtual List<MusicalPreference> SoundColor { get; set; }
}
}