I want to view, edit and create with drop-down list of my lookup relationships.
Sometimes this works, sometimes it doesn't. It's a mystery that I'm hoping can be definitely solved here.
Here's my POCO's for the lookup
public class Color
{
public int Id { get; set; }
public string Value {get;set;}
}
//Red,White,Blue
public class Size
{
public int Id { get; set; }
public string Value { get; set; }
}
//S,M,L
And here is the main Object which I'd like to have the Color and Size drop-downs scaffolding to out of the box.
public class Product
{
public int Id;
public string Name;
public virtual Color Color;
public virtual Size Size;
}
This isn't working for me. Neither Size or Color are showing up when it's time to view, edit or create a Product. I only see the Name field.