Class Formula
Namespace: Restaurant.Domain.Aggregates.FormulaAggregate
Assembly: Restaurant.Domain.dll
Inheritance
object ← Entity ← ProductBase ← Formula
Implements
Inherited Members
ProductBase.Name, ProductBase.Description, ProductBase.DisplayImageUrl, ProductBase.UnitPrice, ProductBase.SortingIndex, ProductBase.IsAvailable, ProductBase.CategoryId, ProductBase.RestaurantId, ProductBase.ExternalPaymentId, ProductBase.Discriminator, ProductBase.UpdateBasicInfos\(string, string, string, double\), ProductBase.UpdateImageUrl\(string\), ProductBase.UpdateSortingIndex\(int\), ProductBase.UpdateExternalPaymentId\(string\), ProductBase.UpdateAvailability\(bool\), ProductBase.DeleteExternalPaymentId\(\), Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
Formula\(\)
Properties
Discriminator
Discriminator that state the type of the inheritor.
Property Value
Sections
This represents the list of Restaurant.Domain.Aggregates.FormulaAggregate.FormulaSection that will be available in the Restaurant.Domain.Aggregates.FormulaAggregate.Formula.
Property Value
List < FormulaSection \>
Methods
AddSection\(FormulaSection\)
Method that add a new section in a formula.
Parameters
newSection FormulaSection
The new section to add.
Create\(string, string, string, double, Guid\)
Parameters
name string
description string
displayImageUrl string
price double
restaurantGuid Guid
Returns
Formula
UpdateFormulaInfos\(string, string\)
Parameters
name string
description string