17 lines
757 B
C#
17 lines
757 B
C#
namespace Francesco.Recipes.World.Models.BackendModels.Ingredient
|
|
{
|
|
using Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList;
|
|
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
|
|
using Francesco.Recipes.World.Models.BackendModels.Unit;
|
|
|
|
public class Ingredient
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
public int Quantity { get; set; }
|
|
public virtual ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
|
|
public virtual ICollection<IngredientsShoppingList> IngredientShoppingLists { get; set; } = new List<IngredientsShoppingList>();
|
|
public virtual Unit Unit { get; set; } = new();
|
|
}
|
|
}
|