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