C# 클래스 Neddle.CourseManager

Contains methods for working with Course entities.
파일 보기 프로젝트 열기: kcargile/neddle

공개 메소드들

메소드 설명
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