C# Class Machete.Service.LookupCache

Inheritance: ILookupCache
Show file Open project: SavageLearning/Machete Class Usage Examples

Private Properties

Property Type Description
FillCache void

Public Methods

Method Description
Dispose ( ) : void
LookupCache ( IDatabaseFactory db ) : System
Refresh ( ) : void
getByID ( int id ) : Lookup
getByKeys ( string category, string key ) : int
getCache ( ) : IEnumerable
getSkillsByWorkType ( int worktypeID ) : IEnumerable
getTeachers ( ) : IEnumerable
isSpecialized ( int skillid ) : bool
textByID ( int ID, string locale ) : string

Get the English or Spanish name for a given lookup number

Private Methods

Method Description
FillCache ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

LookupCache() public method

public LookupCache ( IDatabaseFactory db ) : System
db IDatabaseFactory
return System

Refresh() public method

public Refresh ( ) : void
return void

getByID() public method

public getByID ( int id ) : Lookup
id int
return Machete.Domain.Lookup

getByKeys() public method

public getByKeys ( string category, string key ) : int
category string
key string
return int

getCache() public method

public getCache ( ) : IEnumerable
return IEnumerable

getSkillsByWorkType() public method

public getSkillsByWorkType ( int worktypeID ) : IEnumerable
worktypeID int
return IEnumerable

getTeachers() public method

public getTeachers ( ) : IEnumerable
return IEnumerable

isSpecialized() public method

public isSpecialized ( int skillid ) : bool
skillid int
return bool

textByID() public method

Get the English or Spanish name for a given lookup number
public textByID ( int ID, string locale ) : string
ID int ID of the record to look up
locale string Two Letter ISO Language Name
return string