CodeLiturgy.Dashboard/BlueWest.Data.Capital/User/User.cs

27 lines
669 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using MapTo;
namespace BlueWest.Data
{
[MapFrom( typeof(UserCreate))]
[UseUpdate]
public partial class User
{
public string ApplicationUserId { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public List<FinanceOp> FinanceTransactions { get; set; }
[ForeignKey("CountryId")] public Country Country { get; set; }
public User(int id, string name)
{
Id = id;
Name = name;
}
}
}