28 lines
837 B
C#
28 lines
837 B
C#
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; }
|
|
|
|
} |