Owneat Technical Guide main Help

Class FormulaRepository

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

public sealed class FormulaRepository : Repository<Formula, RestaurantContext>, IFormulaRepository, IRepository<Formula>

Inheritance

object ← Repository<Formula, RestaurantContext\> ← FormulaRepository

Implements

IFormulaRepository, IRepository<Formula\>

Inherited Members

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

Constructors

FormulaRepository\(RestaurantContext\)

public FormulaRepository(RestaurantContext context)

Parameters

context RestaurantContext

Methods

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

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

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

Parameters

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

Returns

Task <Formula?\>

Remarks

This method includes related entities.

GetListAsync\(Expression<Func<Formula, bool\>\>\)

Method that get a list of type Restaurant.Domain.Aggregates.CategoryAggregate.Category in the database that satisfy given System.Linq.Expressions.Expression.

public Task<IEnumerable<Formula>> GetListAsync(Expression<Func<Formula, bool>> expression)

Parameters

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

Returns

Task < IEnumerable <Formula\>\>

VerifyOrderIntegrity\(List<ProductBaseVerificationData\>\)

Method that get a list of available type Restaurant.Domain.Aggregates.FormulaAggregate.Formula in the database that satisfy given System.Linq.Expressions.Expression.

public Task<IEnumerable<Formula>> VerifyOrderIntegrity(List<ProductBaseVerificationData> formulasData)

Parameters

formulasData List <ProductBaseVerificationData\>

Returns

Task < IEnumerable <Formula\>\>

Last modified: 21 May 2024