C# Класс AspNet.StarterKits.Classifieds.BusinessLogicLayer.CategoriesDB

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CategoriesDB ( ) : System
Dispose ( ) : void
GetCategoriesByParentId ( int parentCategroyId ) : CategoriesDataComponent.CategoriesDataTable
GetCategoryById ( int id ) : CategoriesDataComponent.CategoriesDataTable
GetParentCategoriesById ( int categoryId ) : CategoriesDataComponent.CategoriesDataTable
InsertCategory ( int parentCategoryId, string name ) : int

InsertCategory

MoveCategory ( int categoryId, int newParentCategoryId ) : bool
RemoveCategory ( int categoryId ) : bool
UpdateCategoryName ( int categoryId, string newName ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

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

public CategoriesDB ( ) : System
Результат System

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public GetCategoriesByParentId ( int parentCategroyId ) : CategoriesDataComponent.CategoriesDataTable
parentCategroyId int
Результат CategoriesDataComponent.CategoriesDataTable

GetCategoryById() публичный статический Метод

public static GetCategoryById ( int id ) : CategoriesDataComponent.CategoriesDataTable
id int
Результат CategoriesDataComponent.CategoriesDataTable

GetParentCategoriesById() публичный статический Метод

public static GetParentCategoriesById ( int categoryId ) : CategoriesDataComponent.CategoriesDataTable
categoryId int
Результат CategoriesDataComponent.CategoriesDataTable

InsertCategory() публичный статический Метод

InsertCategory
public static InsertCategory ( int parentCategoryId, string name ) : int
parentCategoryId int
name string
Результат int

MoveCategory() публичный статический Метод

public static MoveCategory ( int categoryId, int newParentCategoryId ) : bool
categoryId int
newParentCategoryId int
Результат bool

RemoveCategory() публичный статический Метод

public static RemoveCategory ( int categoryId ) : bool
categoryId int
Результат bool

UpdateCategoryName() публичный статический Метод

public static UpdateCategoryName ( int categoryId, string newName ) : void
categoryId int
newName string
Результат void