IReleaseRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for release repository.
public interface IReleaseRepository : IGenericRepository<Release>Implements
Methods
AddProductReleaseAsync(int, Release)
Asynchronously adds a product release.
Task<EntityEntry<ProductAssembly>> AddProductReleaseAsync(int productId, Release release)Parameters
Returns
A task that represents the asynchronous add operation. The task result contains the added product assembly.
AddReleaseAssemblyAsync(int, int, Assembly)
Asynchronously adds a release assembly.
Task<EntityEntry<ProductAssembly>> AddReleaseAssemblyAsync(int productId, int releaseId, Assembly assembly)Parameters
Returns
CopyAsync(Release, Release)
Copy a release object with all the assemblies. Assembly versions will be aligned with the destination release.
Task CopyAsync(Release source, Release destination)Parameters
Returns
Delete(IEnumerable<int>)
Deletes the given list of releases from the repository. Begins tracking the given list of releases in the Detached state such that it will be deleted in the database when SaveChanges() is called.
void Delete(IEnumerable<int> releaseIds)Parameters
releaseIds IEnumerable<int>
The release ids to delete.
GetProductReleasesAsync(int)
Asynchronously gets a list of releases for the given product.
Task<List<Release>> GetProductReleasesAsync(int productId)Parameters
productId int
The product primary key.
Returns
GetReleaseAssembliesAsync(int)
Asynchronously gets a list of assemblies for the given release.
Task<List<Assembly>> GetReleaseAssembliesAsync(int releaseId)Parameters
releaseId int
The release primary key.
Returns
Last updated