C# Class Tests.EmployeeRepositoryDapper

Inheritance: ISimpleEmployeeRepository
Mostra file Open project: docevaad/Chain Class Usage Examples

Public Methods

Method Description
Delete ( int employeeKey ) : void
EmployeeRepositoryDapper ( string connectionString ) : Dapper
Get ( int employeeKey ) : Employee
GetAll ( ) : IList
GetByManager ( int managerKey ) : IList
GetOfficePhoneNumbers ( ) : IList
Insert ( Employee employee ) : int
InsertAndReturn ( Employee employee ) : Employee
Update ( Employee employee ) : void
Update ( EmployeeOfficePhone employee ) : void
Upsert ( Employee employee ) : int

Method Details

Delete() public method

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

EmployeeRepositoryDapper() public method

public EmployeeRepositoryDapper ( string connectionString ) : Dapper
connectionString string
return Dapper

Get() public method

public Get ( int employeeKey ) : Employee
employeeKey int
return Employee

GetAll() public method

public GetAll ( ) : IList
return IList

GetByManager() public method

public GetByManager ( int managerKey ) : IList
managerKey int
return IList

GetOfficePhoneNumbers() public method

public GetOfficePhoneNumbers ( ) : IList
return IList

Insert() public method

public Insert ( Employee employee ) : int
employee Employee
return int

InsertAndReturn() public method

public InsertAndReturn ( Employee employee ) : Employee
employee Employee
return Employee

Update() public method

public Update ( Employee employee ) : void
employee Employee
return void

Update() public method

public Update ( EmployeeOfficePhone employee ) : void
employee Tests.Models.EmployeeOfficePhone
return void

Upsert() public method

public Upsert ( Employee employee ) : int
employee Employee
return int