Adding
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using LCU.Library.Internal.LoanRateModels.Enums;
|
||||
using LCU.Library.Internal.TypeExtensions.EnumExtensions;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Entities;
|
||||
|
||||
public class RateSheet
|
||||
{
|
||||
[Key]
|
||||
public int RateSheetId { get; set; }
|
||||
[Required]
|
||||
public RateTypes RateType { get; set; }
|
||||
[Required]
|
||||
public string CreatedBy { get; set; } = "System";
|
||||
public DateTime TimeCreated { get; set; } = DateTime.Now;
|
||||
|
||||
public string SheetName => RateType.GetNameFromValue();
|
||||
|
||||
[ForeignKey("RateSheetId")]
|
||||
public ICollection<Rate> Rates { get; set; }
|
||||
|
||||
[ForeignKey("RateSheetId")]
|
||||
public ICollection<RateSheetCell> RateSheetCells { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user