33 lines
767 B
C#
33 lines
767 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using MapTo;
|
|
|
|
namespace BlueWest.Data
|
|
{
|
|
[MapFrom(typeof(FinanceOpCreate))]
|
|
public partial class FinanceOp
|
|
{
|
|
|
|
public int UserId { get; set; }
|
|
|
|
[Key] public TimeSpan CreationDate { get; set; }
|
|
|
|
public Currency Currency { get; }
|
|
|
|
public FinanceOpType Type {get;}
|
|
|
|
private string Description {get;}
|
|
|
|
|
|
public FinanceOp() { }
|
|
|
|
public FinanceOp(TimeSpan creationDate, int userId,
|
|
Currency currency, FinanceOpType financeOpType)
|
|
{
|
|
CreationDate = creationDate;
|
|
UserId = userId;
|
|
Currency = currency;
|
|
Type = financeOpType;
|
|
}
|
|
}
|
|
} |