public static void DeleteTeacher(int id) { SampleObjectContext context = new SampleObjectContext(); DeleteTeacher(context, id); context.AcceptAllChanges(); Teacher.OnCacheNeedsRefresh(); }
public static void DeleteEnrollment(int id) { SampleObjectContext context = new SampleObjectContext(); DeleteEnrollment(context, id); context.AcceptAllChanges(); Enrollment.OnCacheNeedsRefresh(); }
public static Teacher CreateTeacher(string SSN_Parameter, string FirstName_Parameter, string LastName_Parameter, bool Active_Parameter) { SampleObjectContext context = new SampleObjectContext(); Teacher obj = CreateTeacher(context, SSN_Parameter, FirstName_Parameter, LastName_Parameter, Active_Parameter); context.AcceptAllChanges(); Teacher.OnCacheNeedsRefresh(); return(obj); }
public static Student CreateStudent(Major Major_Parameter, string SSN_Parameter, string FirstName_Parameter, string LastName_Parameter, bool Active_Parameter) { SampleObjectContext context = new SampleObjectContext(); Student obj = CreateStudent(context, Major_Parameter, SSN_Parameter, FirstName_Parameter, LastName_Parameter, Active_Parameter); context.AcceptAllChanges(); Student.OnCacheNeedsRefresh(); return(obj); }
public static Semester CreateSemester(DateTime Begin_Parameter, DateTime End_Parameter, string Name_Parameter) { SampleObjectContext context = new SampleObjectContext(); Semester obj = CreateSemester(context, Begin_Parameter, End_Parameter, Name_Parameter); context.AcceptAllChanges(); Semester.OnCacheNeedsRefresh(); return(obj); }
public static Major CreateMajor(string Name_Parameter) { SampleObjectContext context = new SampleObjectContext(); Major obj = CreateMajor(context, Name_Parameter); context.AcceptAllChanges(); Major.OnCacheNeedsRefresh(); return(obj); }
public static Enrollment CreateEnrollment(Student Student_Parameter, Course Course_Parameter) { SampleObjectContext context = new SampleObjectContext(); Enrollment obj = CreateEnrollment(context, Student_Parameter, Course_Parameter); context.AcceptAllChanges(); Enrollment.OnCacheNeedsRefresh(); return(obj); }
public static Course CreateCourse(Semester Semester_Parameter, Teacher Teacher_Parameter, string Number_Parameter, string Name_Parameter, CourseStatus Status_Parameter) { SampleObjectContext context = new SampleObjectContext(); Course obj = CreateCourse(context, Semester_Parameter, Teacher_Parameter, Number_Parameter, Name_Parameter, Status_Parameter); context.AcceptAllChanges(); Course.OnCacheNeedsRefresh(); return(obj); }