28 lines
852 B
C#
28 lines
852 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace EmployeeManagmentDataBaseImplement.Models
|
|||
|
{
|
|||
|
public class PhisicalPerson
|
|||
|
{
|
|||
|
[Key]
|
|||
|
public int Id { get; set; }
|
|||
|
[Required]
|
|||
|
public string Name { get; set; } = string.Empty;
|
|||
|
[Required]
|
|||
|
public string Surname { get; set; } = string.Empty;
|
|||
|
public string? Patronymic { get; set; }
|
|||
|
public DateTime Birthday { get; set; }
|
|||
|
public string Gender { get; set; } = string.Empty;
|
|||
|
public string Address { get; set; } = string.Empty;
|
|||
|
public string Telephone { get; set; } = string.Empty;
|
|||
|
|
|||
|
// Связь с сотрудниками
|
|||
|
public List<Employee>? Employees { get; set; }
|
|||
|
}
|
|||
|
}
|