C# Class Saimoe.Repository.ContestantRepository

ファイルを表示 Open project: quietlynn/gplus.saimoe Class Usage Examples

Public Methods

Method Description
ContestantRepository ( ) : System.Linq

Initialize a repository with default connection string found in the 'SaimoeContext' section of the application configuration file.

ContestantRepository ( string connectionString ) : System.Linq

Initialize a repository with given connection string.

GetContestant ( string googlePlusId ) : Contestant

Get contestant info by google plus id

UpdateProfile ( Profile profile ) : void

Update profile of contestant

Private Methods

Method Description
AddContestant ( Contestant contestant ) : void

Add a new contestant

UpdateProfileByGoogleId ( string googlePlusId, Profile profile ) : void

Method Details

ContestantRepository() public method

Initialize a repository with default connection string found in the 'SaimoeContext' section of the application configuration file.
public ContestantRepository ( ) : System.Linq
return System.Linq

ContestantRepository() public method

Initialize a repository with given connection string.
public ContestantRepository ( string connectionString ) : System.Linq
connectionString string connection string
return System.Linq

GetContestant() public method

Get contestant info by google plus id
public GetContestant ( string googlePlusId ) : Contestant
googlePlusId string google plus id
return Saimoe.Models.Contestant

UpdateProfile() public method

Update profile of contestant
public UpdateProfile ( Profile profile ) : void
profile Saimoe.Models.Profile
return void