Class Recipe
- Assembly
- arolariu.Backend.Domain.Invoices.dll
Recipe model.
public sealed record Recipe : IEquatable<Recipe>
- Inheritance
-
Recipe
- Implements
- Inherited Members
Constructors
Recipe()
Parameterless constructor.
public Recipe()
Recipe(string, string, TimeOnly, RecipeComplexity, ICollection<Product>, Uri)
Parameterized constructor.
public Recipe(string name, string description, TimeOnly duration, RecipeComplexity complexity, ICollection<Product> ingredients, Uri referenceForMoreDetails)
Parameters
name
stringdescription
stringduration
TimeOnlycomplexity
RecipeComplexityingredients
ICollection<Product>referenceForMoreDetails
Uri
Properties
Complexity
The recipe complexity.
public RecipeComplexity Complexity { get; set; }
Property Value
Description
The recipe description.
public string Description { get; set; }
Property Value
Duration
The recipe estimated duration.
public TimeOnly Duration { get; set; }
Property Value
Ingredients
The recipe ingredients.
public ICollection<Product> Ingredients { get; init; }
Property Value
Name
The recipe name.
public string Name { get; set; }
Property Value
ReferenceForMoreDetails
The recipe learn more address.
public Uri ReferenceForMoreDetails { get; set; }