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; } }
private void detach_RecordIndex(RecordIndex entity) { this.SendPropertyChanging(); entity.Course = null; }
partial void DeleteRecordIndex(RecordIndex instance);
partial void UpdateRecordIndex(RecordIndex instance);
partial void InsertRecordIndex(RecordIndex instance);
private void attach_RecordIndex(RecordIndex entity) { this.SendPropertyChanging(); entity.ClassInfo = this; }