C# 클래스 openTill.Persistence.CategoryRepository

A class that actually performs the CRUD operations for a Category.
상속: ICategoryRepository
파일 보기 프로젝트 열기: CIT275DevGroup/openTill 1 사용 예제들

공개 메소드들

메소드 설명
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