Interface IProductRepository
Namespace: Restaurant.Domain.Aggregates.ProductAggregate.Contracts
Assembly: Restaurant.Domain.dll
Implements
Methods
GetAsync\(Expression<Func<Product, bool\>\>\)
Method that get an entity of type Restaurant.Domain.Aggregates.ProductAggregate.Product in the database that satisfy given System.Linq.Expressions.Expression.
Parameters
expression Expression < Func < Product, bool \>\>
Returns
Remarks
This method includes related entities.
GetByExternalPaymentId\(string\)
Method that get an entity of type Restaurant.Domain.Aggregates.ProductAggregate.Product by its external payment id.
Parameters
externalPaymentId string
Returns
GetByGuidListAsync\(IEnumerable<Guid\>\)
Method that get a list of type Restaurant.Domain.Aggregates.ProductAggregate.Product in the database that satisfy given System.Linq.Expressions.Expression.
Parameters
productIds IEnumerable < Guid \>
Returns
Task < IEnumerable < Product \>\>
GetListAsync\(Expression<Func<Product, bool\>\>\)
Method that get a list of type Restaurant.Domain.Aggregates.ProductAggregate.Product in the database that satisfy given System.Linq.Expressions.Expression.
Parameters
expression Expression < Func < Product, bool \>\>
Returns
Task < IEnumerable < Product \>\>
VerifyOrderIntegrity\(List<ProductBaseVerificationData\>\)
Method that get a list of available type Restaurant.Domain.Aggregates.ProductAggregate.Product in the database that satisfy given System.Linq.Expressions.Expression.
Parameters
productsData List < ProductBaseVerificationData \>
Returns
Task < IEnumerable < Product \>\>