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

25 lines
603 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-09-10 07:12:03 +03:00
public string ApplicationUserId { get; set; }
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 19:47:35 +03:00
2022-08-22 02:51:45 +03:00
[ForeignKey("CountryId")] 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-06 13:02:31 +03:00
}