IProductRepository

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

Interface for product repository.

public interface IProductRepository : IGenericRepository<Product>

Implements

IGenericRepository<Product>

Methods

Delete(IEnumerable<int>)

Deletes a list of products with the given primary key values.

void Delete(IEnumerable<int> productsIds)

Parameters

NameDescription

productsIds IEnumerable<int>

The product primary key ids to delete.

DeleteProductLicenseTemplatesAsync(int, IEnumerable<int>)

Asynchronously deletes the license templates for a given product. Begins tracking the given entities in the Detached state such that they will be deleted in the database when SaveChanges() is called.

Task DeleteProductLicenseTemplatesAsync(int productId, IEnumerable<int> templateIds)

Parameters

NameDescription

productId int

The product primary key.

templateIds IEnumerable<int>

List of identifiers for the templates.

Returns

NameDescription

A task that represents the asynchronous delete operation.

DeleteProductReleaseAssemblyAsync(int, int, int)

Asynchronously deletes the released assembly for a given product. Begins tracking the given entities in the Detached state such that they will be deleted in the database when SaveChanges() is called.

Task DeleteProductReleaseAssemblyAsync(int productId, int releaseId, int assemblyId)

Parameters

NameDescription

productId int

The product primary key.

releaseId int

The release primary key.

assemblyId int

The assembly primary key.

Returns

NameDescription

A task that represents the asynchronous delete operation.

DeleteProductReleaseAsync(int, int)

Asynchronously deletes a product release. Begins tracking the given entities in the Detached state such that they will be deleted in the database when SaveChanges() is called.

Task DeleteProductReleaseAsync(int productId, int releaseId)

Parameters

NameDescription

productId int

The product primary key.

releaseId int

The release primary key.

Returns

NameDescription

A task that represents the asynchronous delete operation.

GetProductAssembliesAsync(int)

Asynchronously gets a list of assemblies for a given product.

Task<List<Assembly>> GetProductAssembliesAsync(int productId)

Parameters

NameDescription

productId int

The product primary key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains a list of assembly found.

GetProductLicenseTemplatesAsync(int)

Asynchronously gets a list of license templates for the given product.

Task<List<LicenseTemplate>> GetProductLicenseTemplatesAsync(int productId)

Parameters

NameDescription

productId int

The product primary key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains a list of license template found.

GetProductLicensesAsync(int)

Asynchronously gets a list of licenses for the given product.

Task<List<License>> GetProductLicensesAsync(int productId)

Parameters

NameDescription

productId int

The product primary key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains a list of license found.

GetProductReleaseAssembliesAsync(int, int)

Asynchronously gets a list of assemblies for a given product release.

Task<List<Assembly>> GetProductReleaseAssembliesAsync(int productId, int releaseId)

Parameters

NameDescription

productId int

The product primary key.

releaseId int

The release primary key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains a list of assembly found.

GetProductReleaseAssemblyAsync(int, int, int)

Asynchronously gets the assembly for a given product release.

Task<Assembly> GetProductReleaseAssemblyAsync(int productId, int releaseId, int assemblyId)

Parameters

NameDescription

productId int

The product primary key.

releaseId int

The release primary key.

assemblyId int

The release assembly key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains the assembly found or null.

GetProductReleaseAsync(int, int)

Asynchronously gets the release for the given product.

Task<Release> GetProductReleaseAsync(int productId, int releaseId)

Parameters

NameDescription

productId int

The product primary key.

releaseId int

The release primary key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains the release found or null.

GetProductReleasesAsync(int)

Asynchronously gets a list of releases for the given product.

Task<List<Release>> GetProductReleasesAsync(int productId)

Parameters

NameDescription

productId int

The product primary key.

Returns

NameDescription

A task that represents the asynchronous get operation. The task result contains a list of release found.

InsertProductReleaseAssemblyAsync(int, Release, Assembly)

Asynchronously inserts the given release, assembly record in the repository for a specified product. Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called

Task<EntityEntry<ProductAssembly>> InsertProductReleaseAssemblyAsync(int productId, Release release, Assembly assembly)

Parameters

NameDescription

productId int

The product primary key.

release Release

The product release.

assembly Assembly

The released assembly.

Returns

NameDescription

A task that represents the asynchronous Insert operation.

InsertProductReleaseAsync(int, Release)

Asynchronously inserts the given release record in the repository for a specified product. Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called

Task InsertProductReleaseAsync(int productId, Release release)

Parameters

NameDescription

productId int

The product primary key.

release Release

The release object to be inserted.

Returns

NameDescription

A task that represents the asynchronous Insert operation.

UpdateProductReleaseAsync(int, Release)

Asynchronously updates the given release record in the repository for a specified product. Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called

Task UpdateProductReleaseAsync(int productId, Release release)

Parameters

NameDescription

productId int

The product primary key.

release Release

The release object to be updated.

Returns

NameDescription

A task that represents the asynchronous Update operation.

Last updated