public override void Remove(MISMO.Entities.CreditScoreBase creditScoreBase) { CreditScore score = creditScoreBase as CreditScore; score._borrower = null; base.Remove(creditScoreBase); }
/// <summary> /// Adds a new credit score object to the collection of credit score objects. /// </summary> /// <param name="creditScoreBase">A credit score base object.</param> /// <returns>The position of the addition in the collection.</returns> public override int Add(MISMO.Entities.CreditScoreBase creditScoreBase) { if (creditScoreBase == null) { throw new ArgumentNullException("creditScoreBase", "You may only a valid AUS.CreditScore object to the credit score collection."); } CreditScore score = creditScoreBase as CreditScore; if (!Object.ReferenceEquals(score._borrower, this._borrower)) { score._borrower = _borrower; } return(base.Add(creditScoreBase)); }