Owneat Technical Guide main Help

Class FoodLabelRepository

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

public sealed class FoodLabelRepository : Repository<FoodLabel, RestaurantContext>, IFoodLabelRepository, IRepository<FoodLabel>

Inheritance

object ← Repository<FoodLabel, RestaurantContext\> ← FoodLabelRepository

Implements

IFoodLabelRepository, IRepository<FoodLabel\>

Inherited Members

Repository<FoodLabel, RestaurantContext\>.GetAllAsync\(\), Repository<FoodLabel, RestaurantContext\>.GetByIdAsync\(Guid\), Repository<FoodLabel, RestaurantContext\>.GetByIdAsyncWithConcurrency\(Guid\), Repository<FoodLabel, RestaurantContext\>.Add\(FoodLabel\), Repository<FoodLabel, RestaurantContext\>.Update\(FoodLabel\), Repository<FoodLabel, RestaurantContext\>.UpdateRange\(IEnumerable<FoodLabel\>\), Repository<FoodLabel, RestaurantContext\>.Delete\(FoodLabel\), Repository<FoodLabel, RestaurantContext\>.DeleteRange\(IEnumerable<FoodLabel\>\), Repository<FoodLabel, RestaurantContext\>.Exists\(Func<FoodLabel, bool\>\), object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

FoodLabelRepository\(RestaurantContext\)

public FoodLabelRepository(RestaurantContext context)

Parameters

context RestaurantContext

Methods

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

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

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

Parameters

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

Returns

Task <FoodLabel?\>

Remarks

This method includes related entities.

Last modified: 21 May 2024