Untitled

 avatar
unknown
plain_text
4 years ago
595 B
9
Indexable
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}
}
Editor is loading...