Owneat Technical Guide main Help

Class MenuRepository

Namespace: Restaurant.Infrastructure.Repositories
Assembly: Restaurant.Infrastructure.dll

public sealed class MenuRepository : Repository<Menu, RestaurantContext>, IMenuRepository, IRepository<Menu>

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

public MenuRepository(RestaurantContext context)

Parameters

context RestaurantContext

Methods

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

public 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.

public 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.

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

Parameters

menuIds IEnumerable < Guid \>

Returns

Task < IEnumerable <Menu\>\>

Last modified: 21 May 2024