C# Class Storage.DAO.ProductDAO

ファイルを表示 Open project: aokolity/Storage

Public Methods

Method Description
CreateProduct ( ProductModel productModel ) : void
DeleteProduct ( int id ) : void
GetProduct ( int id ) : ProductModel
GetProductByCode ( string code ) : ProductModel
GetProductList ( ) : List
GetProductListByCategory ( int categoryID ) : List
GetProductListByFilter ( int categoryID, string code, string name ) : List
IsProductCodeAvailable ( string code ) : bool
UpdateProduct ( int id, ProductModel productModel ) : void

Method Details

CreateProduct() public static method

public static CreateProduct ( ProductModel productModel ) : void
productModel Storage.Models.ProductModel
return void

DeleteProduct() public static method

public static DeleteProduct ( int id ) : void
id int
return void

GetProduct() public static method

public static GetProduct ( int id ) : ProductModel
id int
return Storage.Models.ProductModel

GetProductByCode() public static method

public static GetProductByCode ( string code ) : ProductModel
code string
return Storage.Models.ProductModel

GetProductList() public static method

public static GetProductList ( ) : List
return List

GetProductListByCategory() public static method

public static GetProductListByCategory ( int categoryID ) : List
categoryID int
return List

GetProductListByFilter() public static method

public static GetProductListByFilter ( int categoryID, string code, string name ) : List
categoryID int
code string
name string
return List

IsProductCodeAvailable() public static method

public static IsProductCodeAvailable ( string code ) : bool
code string
return bool

UpdateProduct() public static method

public static UpdateProduct ( int id, ProductModel productModel ) : void
id int
productModel Storage.Models.ProductModel
return void