private void FixupGEDDivisoes(GEDDivisoes previousValue) { if (previousValue != null && previousValue.GEDDocumentos.Contains(this)) { previousValue.GEDDocumentos.Remove(this); } if (GEDDivisoes != null) { if (!GEDDivisoes.GEDDocumentos.Contains(this)) { GEDDivisoes.GEDDocumentos.Add(this); } if (DOC_idDivisao != GEDDivisoes.DIV_idDivisao) { DOC_idDivisao = GEDDivisoes.DIV_idDivisao; } } }
private void FixupGEDDivisoes(GEDDivisoes previousValue) { if (previousValue != null && previousValue.GEDTiposDocumentos.Contains(this)) { previousValue.GEDTiposDocumentos.Remove(this); } if (GEDDivisoes != null) { if (!GEDDivisoes.GEDTiposDocumentos.Contains(this)) { GEDDivisoes.GEDTiposDocumentos.Add(this); } if (TPD_idDivisao != GEDDivisoes.DIV_idDivisao) { TPD_idDivisao = GEDDivisoes.DIV_idDivisao; } } else if (!_settingFK) { TPD_idDivisao = null; } }