praktikum4/Domain/Person.cs

29 lines
667 B
C#
Raw Normal View History

2017-03-01 17:20:40 +02:00
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
}
}