C# Class Data.ProductsRepository

显示文件 Open project: KHProjects/KH-Parker-Fox Class Usage Examples

Public Methods

Method Description
Create ( Product product ) : void
Delete ( int id ) : void
Get ( ) : List
Get ( int id ) : Product
Get ( string name ) : Product
New ( ) : Product
Update ( Product product ) : void

Method Details

Create() public method

public Create ( Product product ) : void
product Product
return void

Delete() public method

public Delete ( int id ) : void
id int
return void

Get() public method

public Get ( ) : List
return List

Get() public method

public Get ( int id ) : Product
id int
return Product

Get() public method

public Get ( string name ) : Product
name string
return Product

New() public method

public New ( ) : Product
return Product

Update() public method

public Update ( Product product ) : void
product Product
return void