SAS/CourseDAO.h

16 lines
562 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);
Course& getCourseById(_ConnectionPtr connection, string id);
std::vector<Course>& getCourseByName(_ConnectionPtr connection, string name);
#endif // !COURSE_DAO_H