C# Class ITimeU.Models.AthleteClassModel

Mostra file Open project: heinek/ITimeU Class Usage Examples

Private Properties

Property Type Description
GetOrCreateDbEntity int
SaveToDb int
createDbEntry AthleteClass
getDbEntry AthleteClass
saveDbEntry void
updateDbEntity void
updateProperties void

Public Methods

Method 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

Method 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 method

public AthleteClassModel ( ) : System
return System

AthleteClassModel() public method

public AthleteClassModel ( AthleteClass athleteClass ) : System
athleteClass AthleteClass
return System

AthleteClassModel() public method

public AthleteClassModel ( int id ) : System
id int
return System

AthleteClassModel() public method

public AthleteClassModel ( string name ) : System
name string
return System

Delete() public method

public Delete ( ) : void
return void

DeleteIfExists() public static method

public static DeleteIfExists ( string name ) : void
name string
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetAll() public static method

Retrieves all athlete classes in the database.
public static GetAll ( ) : List
return List

GetById() public static method

public static GetById ( int id ) : AthleteClassModel
id int
return AthleteClassModel

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetOrCreate() public static method

public static GetOrCreate ( string name ) : AthleteClassModel
name string
return AthleteClassModel

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( ) : void
return void