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

31 lines
638 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 06:18:50 +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; }
public Country Country { 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
}