33 lines
718 B
C#
33 lines
718 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 int Id { get; set; }
|
|
public string Name { get; set; }
|
|
|
|
public List<FinanceOp> FinanceTransactions { get; set; }
|
|
|
|
public Country Country { get; set; }
|
|
|
|
[ForeignKey("Countries")]
|
|
public int CountryId { get; set; }
|
|
|
|
public User(int id, string name)
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
}
|
|
|
|
public User()
|
|
{
|
|
}
|
|
}
|
|
} |