C# Class Neddle.CourseManager

Contains methods for working with Course entities.
Afficher le fichier Open project: kcargile/neddle

Méthodes publiques

Méthode Description
CourseManager ( ICourseDataProvider dataProvider ) : System

Initializes a new instance of the CourseManager class.

DeleteCourse ( Course course ) : int

Deletes the specified Course.

Exists ( Course course, bool throwIfNotFound = false ) : bool

Determines if the specified course exists in persistent storage.

LoadCourse ( System.Guid id ) : Course

Loads the course having the specified id.

SaveCourse ( Course course ) : Course

Save the course.

Method Details

CourseManager() public méthode

Initializes a new instance of the CourseManager class.
public CourseManager ( ICourseDataProvider dataProvider ) : System
dataProvider ICourseDataProvider The data provider.
Résultat System

DeleteCourse() public méthode

Deletes the specified Course.
///
public DeleteCourse ( Course course ) : int
course Course The course.
Résultat int

Exists() public méthode

Determines if the specified course exists in persistent storage.
public Exists ( Course course, bool throwIfNotFound = false ) : bool
course Course The course.
throwIfNotFound bool if set to true throws a if not found.
Résultat bool

LoadCourse() public méthode

Loads the course having the specified id.
public LoadCourse ( System.Guid id ) : Course
id System.Guid The identifier.
Résultat Course

SaveCourse() public méthode

Save the course.
public SaveCourse ( Course course ) : Course
course Course The course.
Résultat Course