Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
595 B
6
Indexable
Never
public class Ingredient
{
    public int Id {get;set;}
    public string Name {get;set;}
    public int Kcal {get;set;}
    
    public ICollection<IngredientRecipe> IngredientRecipe{get;set;}
}

public class IngredientRecipe
{
    public int Id {get;set;}
    public int IngredientId {get;set;}
    public int RecipeId {get;set;}
    public int Value {get;set;}

    public Ingredient Ingredient {get;set;}
    public Recipe Recipe {get;set;}
}

public class Recipe
{
    public int Id {get;set;}
    public string Name {get;set;}
    public List<IngredientRecipe> ListOfIngredients {get;set}
}