C# 클래스 ITimeU.Models.AthleteModel

파일 보기 프로젝트 열기: heinek/ITimeU 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateDbEntity int
SetDefaultId void
TryToGetById AthleteModel
createAthleteDbFrom Athlete
updateDbEntity void
updateProperties void

공개 메소드들

메소드 설명
AthleteModel ( ) : System
AthleteModel ( Athlete athleteDb ) : System
AthleteModel ( int id ) : System
AthleteModel ( string firstName, string lastName ) : System
AthleteModel ( string firstName, string lastName, int birthday, ClubModel club, AthleteClassModel athleteClass, int startNumber, int id = EMPTY_ID ) : System
AthleteModel ( string firstName, string lastName, string email, string address, string postalcode, string city, string gender, int birthday, string phonenumber, int startNumber, ClubModel club, AthleteClassModel athleteClass ) : System
ConnectToRace ( int raceId ) : void
Delete ( ) : void
DeleteFromDb ( ) : void

Deletes the given athlete.

GetAll ( ) : List

Retrieves all athletes in the database.

GetAllByClubId ( int id ) : List
GetAthletes ( int clubId ) : List
GetAthletesForRace ( int raceId ) : List
GetById ( int idToGet ) : AthleteModel
RemoveFromRace ( int raceid ) : void
SaveToDb ( ) : void
SaveToDb ( List athletes ) : void

Saves a list of athletes to the database.

StartnumberExistsInDb ( int startnumber ) : bool

Startnumbers the exists in db.

ToString ( ) : string

비공개 메소드들

메소드 설명
CreateDbEntity ( Entities context ) : int
SetDefaultId ( ) : void
TryToGetById ( int idToGet, Entities entities ) : AthleteModel
createAthleteDbFrom ( AthleteModel athlete ) : Athlete
updateDbEntity ( Entities context ) : void
updateProperties ( Athlete athlete ) : void

메소드 상세

AthleteModel() 공개 메소드

public AthleteModel ( ) : System
리턴 System

AthleteModel() 공개 메소드

public AthleteModel ( Athlete athleteDb ) : System
athleteDb Athlete
리턴 System

AthleteModel() 공개 메소드

public AthleteModel ( int id ) : System
id int
리턴 System

AthleteModel() 공개 메소드

public AthleteModel ( string firstName, string lastName ) : System
firstName string
lastName string
리턴 System

AthleteModel() 공개 메소드

public AthleteModel ( string firstName, string lastName, int birthday, ClubModel club, AthleteClassModel athleteClass, int startNumber, int id = EMPTY_ID ) : System
firstName string
lastName string
birthday int
club ClubModel
athleteClass AthleteClassModel
startNumber int
id int
리턴 System

AthleteModel() 공개 메소드

public AthleteModel ( string firstName, string lastName, string email, string address, string postalcode, string city, string gender, int birthday, string phonenumber, int startNumber, ClubModel club, AthleteClassModel athleteClass ) : System
firstName string
lastName string
email string
address string
postalcode string
city string
gender string
birthday int
phonenumber string
startNumber int
club ClubModel
athleteClass AthleteClassModel
리턴 System

ConnectToRace() 공개 메소드

public ConnectToRace ( int raceId ) : void
raceId int
리턴 void

Delete() 공개 메소드

public Delete ( ) : void
리턴 void

DeleteFromDb() 공개 메소드

Deletes the given athlete.
public DeleteFromDb ( ) : void
리턴 void

GetAll() 공개 정적인 메소드

Retrieves all athletes in the database.
public static GetAll ( ) : List
리턴 List

GetAllByClubId() 공개 메소드

public GetAllByClubId ( int id ) : List
id int
리턴 List

GetAthletes() 공개 정적인 메소드

public static GetAthletes ( int clubId ) : List
clubId int
리턴 List

GetAthletesForRace() 공개 정적인 메소드

public static GetAthletesForRace ( int raceId ) : List
raceId int
리턴 List

GetById() 공개 정적인 메소드

public static GetById ( int idToGet ) : AthleteModel
idToGet int
리턴 AthleteModel

RemoveFromRace() 공개 메소드

public RemoveFromRace ( int raceid ) : void
raceid int
리턴 void

SaveToDb() 공개 메소드

public SaveToDb ( ) : void
리턴 void

SaveToDb() 공개 정적인 메소드

Saves a list of athletes to the database.
public static SaveToDb ( List athletes ) : void
athletes List The list of athletes to save.
리턴 void

StartnumberExistsInDb() 공개 정적인 메소드

Startnumbers the exists in db.
public static StartnumberExistsInDb ( int startnumber ) : bool
startnumber int The startnumber.
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string