Add new Model Unit and changed some Logik to some Properties

This commit is contained in:
Francesco D'Amico
2025-01-08 11:27:07 +01:00
parent 6e9ce70355
commit 1f2344eabf
7 changed files with 21 additions and 25 deletions
@@ -6,14 +6,13 @@
public class Recipe
{
public Guid Id { get; set; }
public string? Name { get; set; }
public string? Description { get; set; }
public string? Difficulty { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Difficulty { get; set; }
public int Servings { get; set; }
public TimeSpan PreparationTime { get; set; }
public TimeSpan CookingTime { get; set; }
public virtual ICollection <RecipeIngredient> RecipeIngredients { get; set; } = new List<RecipeIngredient>();
public virtual ICollection <Instruction> Instructions { get; set; } = new List<Instruction>();
}
}