Example #1
0
 partial void UpdateCourse(Course instance);
Example #2
0
 partial void DeleteCourse(Course instance);
Example #3
0
 partial void InsertCourse(Course instance);
Example #4
0
		private void detach_Courses(Course entity)
		{
			this.SendPropertyChanging();
			entity.Year = null;
		}
Example #5
0
		private void attach_Courses(Course entity)
		{
			this.SendPropertyChanging();
			entity.Year = this;
		}
Example #6
0
 public int Add(Course c)
 {
     db.Courses.InsertOnSubmit(c);
     db.SubmitChanges();
     return c.CID;
 }
Example #7
0
 public int SaveNewTournCourse(string name, int YID, int ST)
 {
     DataRepository dataRepository = new DataRepository();
     Course course = new Course();
     course.CourseName = name;
     course.Stableford_Total = ST;
     course.YID = YID;
     int CID = dataRepository.Add(course);
     return CID;
 }