ApiKeyRepository

Namespace: Babel.Data Assembly: Babel.Data.dll

public class ApiKeyRepository : GenericRepository<ApiKey>, IApiKeyRepository, IGenericRepository<ApiKey>

Inheritance

objectGenericRepository<ApiKey>ApiKeyRepository

Implements

IApiKeyRepository, IGenericRepository<ApiKey>

Inherited Members

GenericRepository<ApiKey>.Get(Expression<Func<ApiKey, bool>>, Func<IQueryable<ApiKey>, IOrderedQueryable<ApiKey>>, string, string, int?, int?), GenericRepository<ApiKey>.GetAsync(Expression<Func<ApiKey, bool>>, Func<IQueryable<ApiKey>, IOrderedQueryable<ApiKey>>, string, string, int?, int?, CancellationToken), GenericRepository<ApiKey>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<ApiKey>.GetById(params object[]), GenericRepository<ApiKey>.GetByIdAsync(params object[]), GenericRepository<ApiKey>.GetByIdAsync(object[], CancellationToken), GenericRepository<ApiKey>.CountAsync(Expression<Func<ApiKey, bool>>, CancellationToken), GenericRepository<ApiKey>.CountAsync(string, CancellationToken), GenericRepository<ApiKey>.Insert(ApiKey), GenericRepository<ApiKey>.InsertAsync(ApiKey, CancellationToken), GenericRepository<ApiKey>.Update(ApiKey), GenericRepository<ApiKey>.Delete(params object[]), GenericRepository<ApiKey>.Delete(ApiKey), GenericRepository<ApiKey>.Save(), GenericRepository<ApiKey>.SaveAsync(CancellationToken), GenericRepository<ApiKey>.DbSet, GenericRepository<ApiKey>.Context, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ApiKeyRepository(BabelDbContext)

Initializes a new instance of the ApiKeyRepository class.

public ApiKeyRepository(BabelDbContext context)

Parameters

NameDescription

The database context.

Methods

Delete(IEnumerable<int>)

Deletes the given list of assemblies from the repository. Begins tracking the given list of assemblies in the Detached state such that it will be deleted in the database when SaveChanges() is called.

public void Delete(IEnumerable<int> apiKeyIds)

Parameters

NameDescription

apiKeyIds IEnumerable<int>

The API key identifiers to delete.

Last updated