private void detach_detailorders(detailorder entity)
 {
     this.SendPropertyChanging();
     entity.headorder = null;
 }
 partial void Deletedetailorder(detailorder instance);
 partial void Insertdetailorder(detailorder instance);
 partial void Updatedetailorder(detailorder instance);
 private void attach_detailorders(detailorder entity)
 {
     this.SendPropertyChanging();
     entity.msmenu = this;
 }