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