C# 클래스 Saimoe.Repository.ContestantRepository

파일 보기 프로젝트 열기: quietlynn/gplus.saimoe 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
AddContestant ( Contestant contestant ) : void

Add a new contestant

UpdateProfileByGoogleId ( string googlePlusId, Profile profile ) : void

메소드 상세

ContestantRepository() 공개 메소드

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

ContestantRepository() 공개 메소드

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

GetContestant() 공개 메소드

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

UpdateProfile() 공개 메소드

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