private void attach_StockTrans_CreFinanceId(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans_CreFinanceId");
     entity.RbFinance_CreFinanceId = this;
 }
 private void detach_StockTrans_DebFinanceId(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans_DebFinanceId");
     entity.RbFinance_DebFinanceId = null;
 }
 private void detach_StockTrans_DebOrgStructureId(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans_DebOrgStructureId");
     entity.OrgStructure_DebOrgStructureId = null;
 }
 private void attach_StockTrans_CreOrgStructureId(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans_CreOrgStructureId");
     entity.OrgStructure_CreOrgStructureId = this;
 }
 private void detach_StockTrans_DebNomenclatureId(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans_DebNomenclatureId");
     entity.RbNomenclature_DebNomenclatureId = null;
 }
 private void attach_StockTrans_CreNomenclatureId(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans_CreNomenclatureId");
     entity.RbNomenclature_CreNomenclatureId = this;
 }
 private void detach_StockTrans(StockTran entity)
 {
     this.SendPropertyChanging("StockTrans");
     entity.StockMotionItem = null;
 }