Check box list in MVC 3, Entity Framework 4
Hallo!
I have this three model classes
public partial class CanditeSkill
{
public int SkillLevel { get; set; }
public int CandidateId { get; set; }
public int SkillId { get; set; }
public virtual Candidate Candidate { get; set; }
public virtual Skill Skill { get; set; }
}
public partial class Candidate
{
public Candidate()
{
this.CanditeSkill = new HashSet<CanditeSkill>();
}
public int CandidateId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public virtual ICollection<CanditeSkill> CanditeSkill { get; set; }
public virtual ICollection<Skill> Skills { get; set; }
}
public partial class Skill
{
public Skill()
{
this.CanditeSkill = new HashSet<CanditeSkill>();
}
public int SkillId { get; set; }
public string SkillName { get; set; }
public virtual ICollection<CanditeSkill> CanditeSkill { get; set; }
}
I'm trying to put check box list of skills into my Create.cs view of CandidateControler.But I have problem.
Please help,I'm begginer and this days I'm traying to do this but I dont know how!