CodeLiturgy.Dashboard/BlueWest.Data/Transaction/FinanceOp.cs

34 lines
825 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using MapTo;
namespace BlueWest.Data
{
[MapFrom(typeof(FinanceOpCreate))]
public partial class FinanceOp
{
public int UserId { get; set; }
[Key] public int Id;
public TimeSpan CreationDate { get; set; }
[Required] 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;
}
}
}