C# Class iGoat.Data.ProfileRepository

Inheritance: IProfileRepository
显示文件 Open project: AcklenAvenue/iGoat-Delivery-Back-End

Public Methods

Method Description
Get ( string key ) : Profile
Get ( string username, string password ) : Profile
ProfileRepository ( ISession session, ITimeProvider timeProvider ) : System
Update ( Profile profile ) : Profile
UpdateNewAuthKey ( int profileId, string key, System.DateTime expires ) : void

Method Details

Get() public method

public Get ( string key ) : Profile
key string
return iGoat.Domain.Entities.Profile

Get() public method

public Get ( string username, string password ) : Profile
username string
password string
return iGoat.Domain.Entities.Profile

ProfileRepository() public method

public ProfileRepository ( ISession session, ITimeProvider timeProvider ) : System
session ISession
timeProvider ITimeProvider
return System

Update() public method

public Update ( Profile profile ) : Profile
profile iGoat.Domain.Entities.Profile
return iGoat.Domain.Entities.Profile

UpdateNewAuthKey() public method

public UpdateNewAuthKey ( int profileId, string key, System.DateTime expires ) : void
profileId int
key string
expires System.DateTime
return void