Owneat Technical Guide main Help

Interface ICategoryRepository

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

public interface ICategoryRepository : IRepository<Category>

Implements

IRepository<Category\>

Methods

GetAsync\(Expression<Func<Category, bool\>\>\)

Method that get an entity of type Restaurant.Domain.Aggregates.CategoryAggregate.Category in the database that satisfy given System.Linq.Expressions.Expression.

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

Parameters

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

Returns

Task < Category ?\>

Remarks

This method includes related entities.

GetByGuidListAsync\(IEnumerable<Guid\>\)

Method that get a list of type Restaurant.Domain.Aggregates.CategoryAggregate.Category in the database that satisfy given System.Linq.Expressions.Expression.

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

Parameters

productIds IEnumerable < Guid \>

Returns

Task < IEnumerable < Category \>\>

GetListAsync\(Expression<Func<Category, bool\>\>\)

Method that get a list of type Restaurant.Domain.Aggregates.CategoryAggregate.Category in the database that satisfy given System.Linq.Expressions.Expression.

Task<IEnumerable<Category>> GetListAsync(Expression<Func<Category, bool>> expression)

Parameters

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

Returns

Task < IEnumerable < Category \>\>

Last modified: 21 May 2024