private void detach_Diary(Diary entity)
 {
     this.SendPropertyChanging();
     entity.User = null;
 }
 private void attach_Diary(Diary entity)
 {
     this.SendPropertyChanging();
     entity.User = this;
 }
 partial void UpdateDiary(Diary instance);
 partial void DeleteDiary(Diary instance);
 partial void InsertDiary(Diary instance);