public void addRecordIndex(Guid indexID, DateTime date, Guid courseID, int classID)
 {
     try
     {
         if (dc.RecordIndex.Where(t => t.ID == indexID).Count() == 0)
         {
             RecordIndex ri = new RecordIndex()
             {
                 ID = indexID, Date = date, CourseID = courseID, ClassID = classID
             };
             dc.RecordIndex.InsertOnSubmit(ri);
             dc.SubmitChanges();
         }
     }
     catch (Exception e)
     {
         throw e;
     }
 }
예제 #2
0
 private void detach_RecordIndex(RecordIndex entity)
 {
     this.SendPropertyChanging();
     entity.Course = null;
 }
예제 #3
0
 partial void DeleteRecordIndex(RecordIndex instance);
예제 #4
0
 partial void UpdateRecordIndex(RecordIndex instance);
예제 #5
0
 partial void InsertRecordIndex(RecordIndex instance);
예제 #6
0
 private void attach_RecordIndex(RecordIndex entity)
 {
     this.SendPropertyChanging();
     entity.ClassInfo = this;
 }