PIbd-42_Kashin_M.I_CPO_Cour.../EmployeeManagmentDataBaseImplement/Models/Employee.cs

28 lines
812 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EmployeeManagmentDataModels.Models;
namespace EmployeeManagmentDataBaseImplement.Models
{
public class Employee
{
[Key]
public int Id { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
public DateTime? StartJob { get; set; }
public DateTime? EndJob { get; set; }
public string? PartTimeJob { get; set; }
public float Bid { get; set; }
[ForeignKey("PhysicalPerson")]
public int PhysicalPersonsId { get; set; }
public PhysicalPerson? PhysicalPerson { get; set; }
}
}