Owneat Technical Guide main Help

Class RestaurantEventRepository

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

public sealed class RestaurantEventRepository : Repository<RestaurantEvent, RestaurantContext>, IRestaurantEventRepository, IRepository<RestaurantEvent>

Inheritance

object ← Repository<RestaurantEvent, RestaurantContext\> ← RestaurantEventRepository

Implements

IRestaurantEventRepository, IRepository<RestaurantEvent\>

Inherited Members

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

Constructors

RestaurantEventRepository\(RestaurantContext\)

public RestaurantEventRepository(RestaurantContext context)

Parameters

context RestaurantContext

Methods

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

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

Parameters

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

Returns

Task <RestaurantEvent?\>

GetByGuidListAsync\(IEnumerable<Guid\>\)

public Task<IEnumerable<RestaurantEvent>> GetByGuidListAsync(IEnumerable<Guid> restaurantEventIds)

Parameters

restaurantEventIds IEnumerable < Guid \>

Returns

Task < IEnumerable <RestaurantEvent\>\>

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

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

Parameters

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

Returns

Task < IEnumerable <RestaurantEvent\>\>

Last modified: 21 May 2024