update model
This commit is contained in:
@@ -11,6 +11,6 @@
|
|||||||
|
|
||||||
public virtual ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
|
public virtual ICollection<RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
|
||||||
|
|
||||||
public virtual ICollection<IngredientsShoppingList> IngredientShoppingLists { get; set; } = new List<IngredientsShoppingList>();
|
public virtual ICollection<RecipeIngredientShoppingList> IngredientShoppingLists { get; set; } = new List<RecipeIngredientShoppingList>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
namespace Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList
|
|
||||||
{
|
|
||||||
using Francesco.Recipes.World.Models.BackendModels.Ingredient;
|
|
||||||
using Francesco.Recipes.World.Models.BackendModels.Shoppinglist;
|
|
||||||
|
|
||||||
public class IngredientsShoppingList
|
|
||||||
{
|
|
||||||
public Guid Id { get; set; }
|
|
||||||
|
|
||||||
public ShoppingList Shoppinglist { get; set; } = new ();
|
|
||||||
|
|
||||||
public Ingredient Ingredient { get; set; } = new ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
namespace Francesco.Recipes.World.Models.BackendModels.Recipe;
|
namespace Francesco.Recipes.World.Models.BackendModels.Recipe;
|
||||||
|
|
||||||
|
using Francesco.Recipes.World.Models.BackendModels.Category;
|
||||||
using Francesco.Recipes.World.Models.BackendModels.Favorit;
|
using Francesco.Recipes.World.Models.BackendModels.Favorit;
|
||||||
using Francesco.Recipes.World.Models.BackendModels.Instruction;
|
using Francesco.Recipes.World.Models.BackendModels.Instruction;
|
||||||
using Francesco.Recipes.World.Models.BackendModels.MediaFile;
|
using Francesco.Recipes.World.Models.BackendModels.MediaFile;
|
||||||
@@ -34,4 +35,6 @@ public class Recipe : ITimeStampedEntity
|
|||||||
public virtual ICollection<MediaFile> MediaFiles { get; set; } = new List<MediaFile>();
|
public virtual ICollection<MediaFile> MediaFiles { get; set; } = new List<MediaFile>();
|
||||||
|
|
||||||
public virtual Favorit Favorit { get; set; } = new ();
|
public virtual Favorit Favorit { get; set; } = new ();
|
||||||
|
|
||||||
|
public virtual Category Category { get; set; } = new ();
|
||||||
}
|
}
|
||||||
|
|||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
namespace Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList
|
||||||
|
{
|
||||||
|
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
|
||||||
|
using Francesco.Recipes.World.Models.BackendModels.Shoppinglist;
|
||||||
|
|
||||||
|
public class RecipeIngredientShoppingList
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
public virtual ShoppingList ShoppingList { get; set; } = new ();
|
||||||
|
|
||||||
|
public virtual RecipeIngredient RecipeIngredient { get; set; } = new ();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,6 @@
|
|||||||
|
|
||||||
public DateTime? ModifiedAt { get; set; }
|
public DateTime? ModifiedAt { get; set; }
|
||||||
|
|
||||||
public virtual ICollection<IngredientsShoppingList> IngredientsShoppingLists { get; set; } = new List<IngredientsShoppingList>();
|
public virtual ICollection<RecipeIngredientShoppingList> RecipeIngredientShoppingLists { get; set; } = new List<RecipeIngredientShoppingList>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user