SAS/CourseDAO.h

17 lines
611 B
C
Raw Normal View History

2022-07-03 18:22:02 +08:00
#ifndef COURSE_DAO_H
#define COURSE_DAO_H
#import "c:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF", "EndOfFile")
#include<iostream>
#include<vector>
#include"Course.cpp"
void addCourse(_ConnectionPtr connection, Course course);
void deleteCourse(_ConnectionPtr connection, string id);
void updateCourseName(_ConnectionPtr connection, string id, string name);
2022-07-04 00:31:52 +08:00
Course* getCourseById(_ConnectionPtr connection, string id);
Course* getCourseByName(_ConnectionPtr connection, string name);
std::vector<Course>* getAllCourse(_ConnectionPtr connection);
2022-07-03 18:22:02 +08:00
#endif // !COURSE_DAO_H