33 lines
777 B
C#
33 lines
777 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using MapTo;
|
|
|
|
namespace BlueWest.Data
|
|
{
|
|
[MapFrom(typeof(FinanceOpCreate))]
|
|
public partial class FinanceOp
|
|
{
|
|
|
|
public TimeSpan 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, TimeSpan userId,
|
|
Currency currency, FinanceOpType financeOpType)
|
|
{
|
|
CreationDate = creationDate;
|
|
UserId = userId;
|
|
Currency = currency;
|
|
Type = financeOpType;
|
|
}
|
|
}
|
|
} |