29 lines
667 B
C#
29 lines
667 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Domain
|
|||
|
{
|
|||
|
public class Person
|
|||
|
{
|
|||
|
public int PersonId { get; set; }
|
|||
|
|
|||
|
[MaxLength(128)]
|
|||
|
[MinLength(1)]
|
|||
|
[Required]
|
|||
|
public string FirstName { get; set; }
|
|||
|
[MaxLength(128)]
|
|||
|
[MinLength(1)]
|
|||
|
[Required]
|
|||
|
public string LastName { get; set; }
|
|||
|
|
|||
|
#region NotMaped
|
|||
|
public string FirstLastName => $"{FirstName} {LastName}";
|
|||
|
public string LastFirstName => $"{LastName} {FirstName}";
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|