예제 #1
0
 partial void UpdateCourse(Course instance);
예제 #2
0
 partial void DeleteCourse(Course instance);
예제 #3
0
 partial void InsertCourse(Course instance);
예제 #4
0
		private void detach_Courses(Course entity)
		{
			this.SendPropertyChanging();
			entity.Year = null;
		}
예제 #5
0
		private void attach_Courses(Course entity)
		{
			this.SendPropertyChanging();
			entity.Year = this;
		}
예제 #6
0
 public int Add(Course c)
 {
     db.Courses.InsertOnSubmit(c);
     db.SubmitChanges();
     return c.CID;
 }
예제 #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;
 }