using System; using System.ComponentModel.DataAnnotations; using MapTo; namespace BlueWest.Data { [MapFrom(typeof(FinanceTransactionInsertDto))] public partial class FinanceTransaction { public TimeSpan UserId { get; set; } [Key] public TimeSpan CreationDate { get; set; } public Currency Currency { get; } public FinanceTransactionType Type {get;} private string Description {get;} public FinanceTransaction() { } public FinanceTransaction(TimeSpan creationDate, TimeSpan userId, Currency currency, FinanceTransactionType financeTransactionType) { CreationDate = creationDate; UserId = userId; Currency = currency; Type = financeTransactionType; } } }