Owneat Technical Guide main Help

Interface IProductRepository

Namespace: Restaurant.Domain.Aggregates.ProductAggregate.Contracts
Assembly: Restaurant.Domain.dll

public interface IProductRepository : IRepository<Product>

Implements

IRepository<Product\>

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.

Task<Product?> GetAsync(Expression<Func<Product, bool>> expression)

Parameters

expression Expression < Func < Product, bool \>\>

Returns

Task < Product ?\>

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.

Task<Product?> GetByExternalPaymentId(string externalPaymentId)

Parameters

externalPaymentId string

Returns

Task < Product ?\>

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.

Task<IEnumerable<Product>> GetByGuidListAsync(IEnumerable<Guid> productIds)

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.

Task<IEnumerable<Product>> GetListAsync(Expression<Func<Product, bool>> 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.

Task<IEnumerable<Product>> VerifyOrderIntegrity(List<ProductBaseVerificationData> productsData)

Parameters

productsData List < ProductBaseVerificationData \>

Returns

Task < IEnumerable < Product \>\>

Last modified: 21 May 2024