Posted on: 3/24/2015 12:09:20 PM | Views : 578

Hi all,
        I am currently trying to create a Code First Database that will;
allow users to create an Item.  Allow users to create Recipes using the Items they created.  I have created a collection called Ingredients.
I want the user to able to say for example  in Ingredients 2x Large Carrots. In Items there should be only one reference or one Item that is A Carrot. so far I have created this Model 
using System; using System.Collections.Generic; using System.Linq; using System.Web;
namespace RecipeShopping.Models { public enum size { S, M, L, XL, }
public class Item { public int Id { get; set; }
public string name { get; set; } public double weight { get; set; } public size Size {get; set;} public double capacity { get; set; }
} // end ...

Go to the complete details ...