Aidan Arthur
-1
Q:

asp.net mvc 5 codefirst dropdown list

 public class Product
 {
    public int Id { get; set; }
    public string Name { get; set; }      
    public string Description { get; set; }

    public int CategoryId { get; set; }
    public Category Category { get; set; }
 }

 public class Category
 {
    public int Id { get; set; }
    public string Name { get; set; }
    public string Description { get; set; }

    public virtual ICollection<Product> Products { get; set; }
 }
0

New to Communities?

Join the community