Class Entity
Namespace: Common.Primitives
Assembly: Common.dll
Common.Primitives.Entity defines an object that will be represented as a table in the database.
Inheritance
object ← Entity
Derived
Allergen, Category, Customer, Feedback, FoodLabel, FormulaSection, Ingredient, Menu, OpeningHours, Order, OrderLineItem, Payment, Personalization, ProductBase, Restaurant, RestaurantEvent, Role, Table, TimeRange, User
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Fields
DomainEvents
List of domain events that have been triggered by the Common.Primitives.Entity.
Field Value
Queue < IDomainEvent \>
Properties
CreatedAt
System.DateTimeOffset for the creation date of the Common.Primitives.Entity.
Property Value
Id
The Id property represents the unique identity of the Common.Primitives.Entity.
Property Value
UpdatedAt
System.DateTimeOffset for the last update date of the Common.Primitives.Entity.
Property Value
Methods
EmitDomainEvent\(IDomainEvent\)
AddDomainEvent adds a domain event to the Common.Primitives.Entity to be dispatched when saving changes.
Parameters
eventItem IDomainEvent