Interface IRestaurantRepository
Namespace: Restaurant.Domain.Aggregates.RestaurantAggregate.Contracts
Assembly: Restaurant.Domain.dll
public interface IRestaurantRepository : IRepository<Restaurant>
Implements
Methods
GetAsync\(Expression<Func<Restaurant, bool\>\>\)
Method that get an entity of type Restaurant.Domain.Aggregates.RestaurantAggregate.Restaurant in the database that satisfy given System.Linq.Expressions.Expression.
Task<Restaurant?> GetAsync(Expression<Func<Restaurant, bool>> expression)
Parameters
expression Expression < Func < Restaurant, bool \>\>
Returns
Task < Restaurant ?\>
Remarks
This method includes related entities.
GetWithActiveMenuAsync\(Expression<Func<Restaurant, bool\>\>\)
Method that get an entity of type Restaurant.Domain.Aggregates.RestaurantAggregate.Restaurant in the database that satisfy given System.Linq.Expressions.Expression.
Task<Restaurant?> GetWithActiveMenuAsync(Expression<Func<Restaurant, bool>> expression)
Parameters
expression Expression < Func < Restaurant, bool \>\>
Returns
Task < Restaurant ?\>
Remarks
This method includes related entities and filter on menu active.
Last modified: 21 May 2024