C# Class Payroll.Infrastructure.RavenDbEmployeeRepository.EmployeeRepository

Inheritance: IEmployeeRepository, IDisposable
Show file Open project: ravendb/docs

Public Methods

Method Description
CreateEmployee ( EmployeeId id, FullName name, decimal initialSalary ) : void
Dispose ( ) : void
EmployeeRepository ( ) : System
IsRegistered ( EmployeeId id ) : bool
Load ( EmployeeId id ) : Employee
RaiseSalary ( EmployeeId id, decimal amount ) : void
UpdateHomeAddress ( EmployeeId id, Address homeAddress ) : void

Method Details

CreateEmployee() public method

public CreateEmployee ( EmployeeId id, FullName name, decimal initialSalary ) : void
id Payroll.Domain.Model.EmployeeId
name FullName
initialSalary decimal
return void

Dispose() public method

public Dispose ( ) : void
return void

EmployeeRepository() public method

public EmployeeRepository ( ) : System
return System

IsRegistered() public method

public IsRegistered ( EmployeeId id ) : bool
id Payroll.Domain.Model.EmployeeId
return bool

Load() public method

public Load ( EmployeeId id ) : Employee
id Payroll.Domain.Model.EmployeeId
return Payroll.Domain.Model.Employee

RaiseSalary() public method

public RaiseSalary ( EmployeeId id, decimal amount ) : void
id Payroll.Domain.Model.EmployeeId
amount decimal
return void

UpdateHomeAddress() public method

public UpdateHomeAddress ( EmployeeId id, Address homeAddress ) : void
id Payroll.Domain.Model.EmployeeId
homeAddress Payroll.Domain.Model.Address
return void