2017-01-13 16:31:40 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2017-03-03 17:36:29 +01:00
|
|
|
using System.Linq;
|
2017-01-13 16:31:40 +01:00
|
|
|
using YavscLib;
|
|
|
|
|
|
2017-02-12 22:20:57 +01:00
|
|
|
namespace Yavsc.Models.Musical.Profiles
|
2017-01-13 16:31:40 +01:00
|
|
|
{
|
|
|
|
|
public class GeneralSettings : ISpecializationSettings
|
|
|
|
|
{
|
|
|
|
|
public virtual List<MusicalPreference> SoundColor { get; set; }
|
|
|
|
|
[Key]
|
|
|
|
|
public string UserId
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-03-03 17:36:29 +01:00
|
|
|
|
|
|
|
|
public bool ExistsInDb(object dbContext)
|
|
|
|
|
{
|
|
|
|
|
return ((ApplicationDbContext)dbContext).GeneralSettings.Any(p=>p.UserId==UserId);
|
|
|
|
|
}
|
2017-01-13 16:31:40 +01:00
|
|
|
}
|
|
|
|
|
}
|