I am using Entity Framework with a code-first approach. I wanted to have a property / attribute in my model but I don't want it to be a column in my database when I perform a migration?
An example model:
public class Class
{
public int Id { get; set; }
[Required]
public int SkillId { get; set; }
public Skill Skill { get; set; }
public string SelectedSkills { get; set; }
public int Repeat { get; set; }
}
In the above example, how can I have the SelectedSkills and Repeat properties without having them as columns in the database?
Can I achieve this using the private keyword?
Thank you