C# Класс Neddle.CourseManager

Contains methods for working with Course entities.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CourseManager() публичный Метод

Initializes a new instance of the CourseManager class.
public CourseManager ( ICourseDataProvider dataProvider ) : System
dataProvider ICourseDataProvider The data provider.
Результат System

DeleteCourse() публичный Метод

Deletes the specified Course.
///
public DeleteCourse ( Course course ) : int
course Course The course.
Результат int

Exists() публичный Метод

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.
Результат bool

LoadCourse() публичный Метод

Loads the course having the specified id.
public LoadCourse ( System.Guid id ) : Course
id System.Guid The identifier.
Результат Course

SaveCourse() публичный Метод

Save the course.
public SaveCourse ( Course course ) : Course
course Course The course.
Результат Course