//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace BuddyFinance.Model { using System; using System.Collections.Generic; public partial class Loan { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public Loan() { this.LoanRepayments = new HashSet(); this.LoanSchedules = new HashSet(); this.Transactions = new HashSet(); } public int Id { get; set; } public int LoanRequestId { get; set; } public int LoanOfferId { get; set; } public double LoanAmount { get; set; } public System.DateTime FirstRepaymentDate { get; set; } public int LoanDuration { get; set; } public int TermTypeId { get; set; } public int LoanStatusId { get; set; } public System.DateTime CreatedDate { get; set; } public double InitialPaymentAmount { get; set; } public Nullable DateAccepted { get; set; } public double MonthlyInstallmentAmount { get; set; } public double TotalPayment { get; set; } public string Comment { get; set; } public Nullable RepayCompletedDate { get; set; } public Nullable BorrowerId { get; set; } public Nullable LenderId { get; set; } public virtual LoanStatus LoanStatus { get; set; } public virtual TermType TermType { get; set; } public virtual LoanPayout LoanPayout { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection LoanRepayments { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection LoanSchedules { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Transactions { get; set; } public virtual LoanOffer LoanOffer { get; set; } public virtual LoanRequest LoanRequest { get; set; } public virtual Borrower Borrower { get; set; } public virtual Lender Lender { get; set; } } }