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

33 lines
718 B
C#
Raw Normal View History

2022-08-06 13:02:31 +03:00
using System;
2021-12-10 03:04:48 +03:00
using System.Collections.Generic;
2022-08-19 06:18:50 +03:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2021-12-10 03:04:48 +03:00
using MapTo;
namespace BlueWest.Data
{
2022-08-19 06:18:50 +03:00
[MapFrom( typeof(UserCreate))]
2022-08-17 23:21:00 +03:00
[UseUpdate]
2022-08-04 01:01:10 +03:00
public partial class User
2021-12-10 03:04:48 +03:00
{
2022-08-19 19:47:35 +03:00
public int Id { get; set; }
2022-08-06 13:02:31 +03:00
public string Name { get; set; }
2022-08-19 06:18:50 +03:00
public List<FinanceOp> FinanceTransactions { get; set; }
2022-08-19 19:47:35 +03:00
2022-08-19 06:18:50 +03:00
public Country Country { get; set; }
2022-08-19 19:47:35 +03:00
2022-08-20 05:47:32 +03:00
[ForeignKey("Countries")]
2022-08-19 19:47:35 +03:00
public int CountryId { get; set; }
2021-12-10 03:04:48 +03:00
2022-08-19 06:18:50 +03:00
public User(int id, string name)
2021-12-10 03:04:48 +03:00
{
Id = id;
Name = name;
}
2022-08-04 01:01:10 +03:00
public User()
{
}
2021-12-10 03:04:48 +03:00
}
2022-08-06 13:02:31 +03:00
}