Owneat Technical Guide main Help

Interface IMenuRepository

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

public interface IMenuRepository : IRepository<Menu>

Implements

IRepository<Menu\>

Methods

GetAllByPredicate\(Expression<Func<Menu, bool\>\>\)

Task<IEnumerable<Menu>> GetAllByPredicate(Expression<Func<Menu, bool>> expression)

Parameters

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

Returns

Task < IEnumerable < Menu \>\>

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

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

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

Parameters

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

Returns

Task < Menu ?\>

Remarks

This method includes related entities.

GetByGuidListAsync\(IEnumerable<Guid\>\)

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

Task<IEnumerable<Menu>> GetByGuidListAsync(IEnumerable<Guid> menuIds)

Parameters

menuIds IEnumerable < Guid \>

Returns

Task < IEnumerable < Menu \>\>

Last modified: 21 May 2024