C# Class ITimeU.Models.AthleteClassModel

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

Private Properties

Свойство Type Description
GetOrCreateDbEntity int
SaveToDb int
createDbEntry AthleteClass
getDbEntry AthleteClass
saveDbEntry void
updateDbEntity void
updateProperties void

Méthodes publiques

Méthode Description
AthleteClassModel ( ) : System
AthleteClassModel ( AthleteClass athleteClass ) : System
AthleteClassModel ( int id ) : System
AthleteClassModel ( string name ) : System
Delete ( ) : void
DeleteIfExists ( string name ) : void
Equals ( object obj ) : bool
GetAll ( ) : List

Retrieves all athlete classes in the database.

GetById ( int id ) : AthleteClassModel
GetHashCode ( ) : int
GetOrCreate ( string name ) : AthleteClassModel
ToString ( ) : string
Update ( ) : void

Private Methods

Méthode Description
GetOrCreateDbEntity ( Entities context ) : int
SaveToDb ( ) : int
createDbEntry ( string name ) : AthleteClass
getDbEntry ( string name ) : AthleteClass
saveDbEntry ( AthleteClass athleteClassDb ) : void
updateDbEntity ( Entities context ) : void
updateProperties ( AthleteClass athleteClass ) : void

Method Details

AthleteClassModel() public méthode

public AthleteClassModel ( ) : System
Résultat System

AthleteClassModel() public méthode

public AthleteClassModel ( AthleteClass athleteClass ) : System
athleteClass AthleteClass
Résultat System

AthleteClassModel() public méthode

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

AthleteClassModel() public méthode

public AthleteClassModel ( string name ) : System
name string
Résultat System

Delete() public méthode

public Delete ( ) : void
Résultat void

DeleteIfExists() public static méthode

public static DeleteIfExists ( string name ) : void
name string
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetAll() public static méthode

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

GetById() public static méthode

public static GetById ( int id ) : AthleteClassModel
id int
Résultat AthleteClassModel

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetOrCreate() public static méthode

public static GetOrCreate ( string name ) : AthleteClassModel
name string
Résultat AthleteClassModel

ToString() public méthode

public ToString ( ) : string
Résultat string

Update() public méthode

public Update ( ) : void
Résultat void