I am developing a CMS and I have a category class like this :
public partial class Category
{
public int CategoryId {get;set;}
public string CategoryName {get;set;}
public string CategoryType {get;set;}
}
I am using Entity Framework to store & create such database table in my database. Now, how can I add dynamic fields to this model and hence to the database. I am allowing the user to add his desired custom fields to be added. So, my database schema becomes
Category(CategoryId, CategoryName, CategoryType, CustomField1, CustomField2);
How can I do this using EF 5?