Amii

Amii

  • NA
  • 2
  • 5.9k

Check box list in MVC 3, Entity Framework 4

Aug 8 2011 7:02 AM
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!


Answers (1)