Class RestaurantRepository
Namespace: Restaurant.Infrastructure.Repositories
Assembly: Restaurant.Infrastructure.dll
Inheritance
object ← Repository<Restaurant, RestaurantContext\> ← RestaurantRepository
Implements
IRestaurantRepository, IRepository<Restaurant\>
Inherited Members
Repository<Restaurant, RestaurantContext\>.GetAllAsync\(\), Repository<Restaurant, RestaurantContext\>.GetByIdAsync\(Guid\), Repository<Restaurant, RestaurantContext\>.GetByIdAsyncWithConcurrency\(Guid\), Repository<Restaurant, RestaurantContext\>.Add\(Restaurant\), Repository<Restaurant, RestaurantContext\>.Update\(Restaurant\), Repository<Restaurant, RestaurantContext\>.UpdateRange\(IEnumerable<Restaurant\>\), Repository<Restaurant, RestaurantContext\>.Delete\(Restaurant\), Repository<Restaurant, RestaurantContext\>.DeleteRange\(IEnumerable<Restaurant\>\), Repository<Restaurant, RestaurantContext\>.Exists\(Func<Restaurant, bool\>\), object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
RestaurantRepository\(RestaurantContext\)
Parameters
context RestaurantContext
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.
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.
Parameters
expression Expression < Func <Restaurant, bool \>\>
Returns
Task <Restaurant?\>
Remarks
This method includes related entities and filter on menu active.