Exemple #1
0
 public void submitFeedback(int stuID, int rating, int mID, string feedback, int lecturerID, DateTime dt)
 {
     using (FeedbackDataDataContext fbd = new FeedbackDataDataContext())
     {
         var feedb = new feedback();
         feedb.studentID = stuID;
         feedb.lectureRating = rating;
         feedb.moduleID = mID;
         feedb.Feedback1 = feedback;
         feedb.teacherID = lecturerID;
         feedb.date = dt;
         fbd.feedbacks.InsertOnSubmit(feedb);
         fbd.SubmitChanges();
     }
 }
		private void detach_feedbacks(feedback entity)
		{
			this.SendPropertyChanging();
			entity.student = null;
		}
		private void attach_feedbacks(feedback entity)
		{
			this.SendPropertyChanging();
			entity.student = this;
		}
		private void attach_feedbacks(feedback entity)
		{
			this.SendPropertyChanging();
			entity.Lecturer = this;
		}
 partial void Deletefeedback(feedback instance);
 partial void Updatefeedback(feedback instance);
 partial void Insertfeedback(feedback instance);