ResourceRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
A resource repository.
Inheritance
object ← GenericRepository<Resource> ← ResourceRepository
Implements
IResourceRepository, IGenericRepository<Resource>
Inherited Members
GenericRepository<Resource>.Get(Expression<Func<Resource, bool>>, Func<IQueryable<Resource>, IOrderedQueryable<Resource>>, string, string, int?, int?), GenericRepository<Resource>.GetAsync(Expression<Func<Resource, bool>>, Func<IQueryable<Resource>, IOrderedQueryable<Resource>>, string, string, int?, int?, CancellationToken), GenericRepository<Resource>.QueryAsync(string, string, string, string, int?, int?, CancellationToken), GenericRepository<Resource>.GroupByAsync(string, string, int?, int?, CancellationToken), GenericRepository<Resource>.GetById(params object[]), GenericRepository<Resource>.GetByIdAsync(params object[]), GenericRepository<Resource>.GetByIdAsync(object[], CancellationToken), GenericRepository<Resource>.CountAsync(Expression<Func<Resource, bool>>, CancellationToken), GenericRepository<Resource>.CountAsync(string, CancellationToken), GenericRepository<Resource>.Insert(Resource), GenericRepository<Resource>.InsertAsync(Resource, CancellationToken), GenericRepository<Resource>.Update(Resource), GenericRepository<Resource>.Delete(params object[]), GenericRepository<Resource>.Delete(Resource), GenericRepository<Resource>.Save(), GenericRepository<Resource>.SaveAsync(CancellationToken), GenericRepository<Resource>.DbSet, GenericRepository<Resource>.Context, GenericRepository<Resource>.NoTracking, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
ResourceRepository(BabelDbContext)
Constructor.
Parameters
The context.
Methods
AddDownloadAsync(Download)
Adds a download asynchronous.
Parameters
The download.
Returns
An asynchronous result that yields the add download.
Delete(IEnumerable<int>)
Deletes the given list of resources from the repository. Begins tracking the given list of resources in the Detached state such that it will be deleted in the database when SaveChanges() is called.
Parameters
The Resource key identifiers to delete.
Delete(Resource)
Deletes the given entityToDelete.
Parameters
The entity to delete to delete.
DeleteDownloads(IEnumerable<int>)
Deletes the downloads described by downloadIds.
Parameters
List of identifiers for the downloads.
GetDownloadAsync(int)
Gets download asynchronous.
Parameters
Identifier for the download.
Returns
An asynchronous result that yields the download.
GetDownloadByAliasAsync(string)
Gets download by alias asynchronous.
Parameters
The alias.
Returns
An asynchronous result that yields the download by alias.
GetDownloadsAsync()
Gets downloads asynchronous.
Returns
An asynchronous result that yields the downloads.
GetResourceType(Resource)
Gets resource type.
Parameters
The entity to delete to delete.
Returns
The resource type.
GetSignatureKeysAsync(CancellationToken)
Gets signature keys asynchronous.
Parameters
(Optional) A token that allows processing to be cancelled.
Returns
An asynchronous result that yields the signature keys.
TrackResourceAsync(Resource)
Track resource asynchronous.
Parameters
The entity to delete to delete.
Returns
An asynchronous result.
UpdateDownload(Download)
Updates the download described by download.
Parameters
The download.
Last updated