Class MenuRepository
Namespace: Restaurant.Infrastructure.Repositories
Assembly: Restaurant.Infrastructure.dll
Inheritance
object ← Repository<Menu, RestaurantContext\> ← MenuRepository
Implements
IMenuRepository, IRepository<Menu\>
Inherited Members
Repository<Menu, RestaurantContext\>.GetAllAsync\(\), Repository<Menu, RestaurantContext\>.GetByIdAsync\(Guid\), Repository<Menu, RestaurantContext\>.GetByIdAsyncWithConcurrency\(Guid\), Repository<Menu, RestaurantContext\>.Add\(Menu\), Repository<Menu, RestaurantContext\>.Update\(Menu\), Repository<Menu, RestaurantContext\>.UpdateRange\(IEnumerable<Menu\>\), Repository<Menu, RestaurantContext\>.Delete\(Menu\), Repository<Menu, RestaurantContext\>.DeleteRange\(IEnumerable<Menu\>\), Repository<Menu, RestaurantContext\>.Exists\(Func<Menu, bool\>\), object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
MenuRepository\(RestaurantContext\)
Parameters
context RestaurantContext
Methods
GetAllByPredicate\(Expression<Func<Menu, bool\>\>\)
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.
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.
Parameters
menuIds IEnumerable < Guid \>
Returns
Task < IEnumerable <Menu\>\>