C# Класс openTill.Persistence.CategoryRepository

A class that actually performs the CRUD operations for a Category.
Наследование: ICategoryRepository
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Delete ( CategoryDTO categoryDel ) : void

Deletes a category.

GetAll ( ) : IEnumerable

Returns all categories.

GetByName ( string name ) : CategoryDTO

Returns a category with a name matching the given name. Returns a null category if no match is found.

Insert ( CategoryDTO newCategory ) : void

Submits a new category for persistence.

Update ( CategoryDTO categoryUpdate ) : void

Updates an existing category.

Описание методов

Delete() публичный Метод

Deletes a category.
public Delete ( CategoryDTO categoryDel ) : void
categoryDel openTill.Domain.DTO.CategoryDTO Category to delete
Результат void

GetAll() публичный Метод

Returns all categories.
public GetAll ( ) : IEnumerable
Результат IEnumerable

GetByName() публичный Метод

Returns a category with a name matching the given name. Returns a null category if no match is found.
public GetByName ( string name ) : CategoryDTO
name string Category name
Результат openTill.Domain.DTO.CategoryDTO

Insert() публичный Метод

Submits a new category for persistence.
public Insert ( CategoryDTO newCategory ) : void
newCategory openTill.Domain.DTO.CategoryDTO New category to save
Результат void

Update() публичный Метод

Updates an existing category.
public Update ( CategoryDTO categoryUpdate ) : void
categoryUpdate openTill.Domain.DTO.CategoryDTO Category to update
Результат void