21 lines
652 B
C#
21 lines
652 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using LCU.Library.Internal.LcuEvaluationModels.Entities;
|
|
namespace LCU.Library.Internal.LoanRateModels.Entities;
|
|
|
|
public class RateEvaluation
|
|
{
|
|
public int RateEvaluationId { get; set; }
|
|
public int RateId { get; set; }
|
|
public int EvaluationDetailId { get; set; }
|
|
|
|
[ForeignKey("EvaluationDetailId")]
|
|
public EvaluationDetail EvaluationDetail { get; set; }
|
|
|
|
public RateEvaluation ShallowCopyNewRate()
|
|
{
|
|
var newRateRule = (RateEvaluation)MemberwiseClone();
|
|
newRateRule.RateEvaluationId = 0;
|
|
newRateRule.RateId = 0;
|
|
return newRateRule;
|
|
}
|
|
} |