private void attach_TeacherSubjects(TeacherSubject entity) { this.SendPropertyChanging(); entity.Teacher = this; }
partial void DeleteTeacherSubject(TeacherSubject instance);
partial void UpdateTeacherSubject(TeacherSubject instance);
partial void InsertTeacherSubject(TeacherSubject instance);
private void detach_TeacherSubjects(TeacherSubject entity) { this.SendPropertyChanging(); entity.Subject = null; }
partial void InsertTeacherSubject(TeacherSubject instance) { if (!TeacherSubjects.Contains(instance)) ExecuteDynamicInsert(instance); }