C# Class AspNet.StarterKits.Classifieds.BusinessLogicLayer.CategoriesDB

Inheritance: IDisposable
Datei anzeigen Open project: mono/gert Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

CategoriesDB() public method

public CategoriesDB ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetCategoriesByParentId() public method

public GetCategoriesByParentId ( int parentCategroyId ) : CategoriesDataComponent.CategoriesDataTable
parentCategroyId int
return CategoriesDataComponent.CategoriesDataTable

GetCategoryById() public static method

public static GetCategoryById ( int id ) : CategoriesDataComponent.CategoriesDataTable
id int
return CategoriesDataComponent.CategoriesDataTable

GetParentCategoriesById() public static method

public static GetParentCategoriesById ( int categoryId ) : CategoriesDataComponent.CategoriesDataTable
categoryId int
return CategoriesDataComponent.CategoriesDataTable

InsertCategory() public static method

InsertCategory
public static InsertCategory ( int parentCategoryId, string name ) : int
parentCategoryId int
name string
return int

MoveCategory() public static method

public static MoveCategory ( int categoryId, int newParentCategoryId ) : bool
categoryId int
newParentCategoryId int
return bool

RemoveCategory() public static method

public static RemoveCategory ( int categoryId ) : bool
categoryId int
return bool

UpdateCategoryName() public static method

public static UpdateCategoryName ( int categoryId, string newName ) : void
categoryId int
newName string
return void