C# 클래스 Storage.DAO.ProductDAO

파일 보기 프로젝트 열기: aokolity/Storage

공개 메소드들

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

메소드 상세

CreateProduct() 공개 정적인 메소드

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

DeleteProduct() 공개 정적인 메소드

public static DeleteProduct ( int id ) : void
id int
리턴 void

GetProduct() 공개 정적인 메소드

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

GetProductByCode() 공개 정적인 메소드

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

GetProductList() 공개 정적인 메소드

public static GetProductList ( ) : List
리턴 List

GetProductListByCategory() 공개 정적인 메소드

public static GetProductListByCategory ( int categoryID ) : List
categoryID int
리턴 List

GetProductListByFilter() 공개 정적인 메소드

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

IsProductCodeAvailable() 공개 정적인 메소드

public static IsProductCodeAvailable ( string code ) : bool
code string
리턴 bool

UpdateProduct() 공개 정적인 메소드

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