CodeLiturgy.Dashboard/BlueWest.Data/Finance/FinanceTransaction.cs

39 lines
1.1 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using MapTo;
namespace BlueWest.Data
{
[MapFrom(typeof(FinanceTransactionInsertDto))]
public partial class FinanceTransaction
{
[Key] public TimeSpan CreationDate { get; set; }
public TimeSpan UserId { get; set; }
public string Currency { get; }
public double Amount { get; } // To Buy
public double Quantity { get; } // Bought
public double Fee { get; }
public TimeSpan UploadedDate { get; }
public TimeSpan TransactionDate { get; }
public FinanceTransaction()
{
}
public FinanceTransaction(TimeSpan creationDate, TimeSpan userId,
string currency, double amount, double quantity, double fee, TimeSpan uploadedDate, TimeSpan transactionDate)
{
CreationDate = creationDate;
UserId = userId;
Amount = amount;
Quantity = quantity;
Fee = fee;
Currency = currency;
UploadedDate = uploadedDate;
TransactionDate = transactionDate;
}
}
}