C# Class ITimeU.Models.AthleteModel

Afficher le fichier Open project: heinek/ITimeU Class Usage Examples

Private Properties

Свойство Type Description
CreateDbEntity int
SetDefaultId void
TryToGetById AthleteModel
createAthleteDbFrom Athlete
updateDbEntity void
updateProperties void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CreateDbEntity ( Entities context ) : int
SetDefaultId ( ) : void
TryToGetById ( int idToGet, Entities entities ) : AthleteModel
createAthleteDbFrom ( AthleteModel athlete ) : Athlete
updateDbEntity ( Entities context ) : void
updateProperties ( Athlete athlete ) : void

Method Details

AthleteModel() public méthode

public AthleteModel ( ) : System
Résultat System

AthleteModel() public méthode

public AthleteModel ( Athlete athleteDb ) : System
athleteDb Athlete
Résultat System

AthleteModel() public méthode

public AthleteModel ( int id ) : System
id int
Résultat System

AthleteModel() public méthode

public AthleteModel ( string firstName, string lastName ) : System
firstName string
lastName string
Résultat System

AthleteModel() public méthode

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
Résultat System

AthleteModel() public méthode

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
Résultat System

ConnectToRace() public méthode

public ConnectToRace ( int raceId ) : void
raceId int
Résultat void

Delete() public méthode

public Delete ( ) : void
Résultat void

DeleteFromDb() public méthode

Deletes the given athlete.
public DeleteFromDb ( ) : void
Résultat void

GetAll() public static méthode

Retrieves all athletes in the database.
public static GetAll ( ) : List
Résultat List

GetAllByClubId() public méthode

public GetAllByClubId ( int id ) : List
id int
Résultat List

GetAthletes() public static méthode

public static GetAthletes ( int clubId ) : List
clubId int
Résultat List

GetAthletesForRace() public static méthode

public static GetAthletesForRace ( int raceId ) : List
raceId int
Résultat List

GetById() public static méthode

public static GetById ( int idToGet ) : AthleteModel
idToGet int
Résultat AthleteModel

RemoveFromRace() public méthode

public RemoveFromRace ( int raceid ) : void
raceid int
Résultat void

SaveToDb() public méthode

public SaveToDb ( ) : void
Résultat void

SaveToDb() public static méthode

Saves a list of athletes to the database.
public static SaveToDb ( List athletes ) : void
athletes List The list of athletes to save.
Résultat void

StartnumberExistsInDb() public static méthode

Startnumbers the exists in db.
public static StartnumberExistsInDb ( int startnumber ) : bool
startnumber int The startnumber.
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string