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

26 lines
679 B
C#

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 Vacation : IVacation
{
[Key]
public int Id { get; set; }
public DateTime StartData { get; set; }
public DateTime EndData { get; set; }
public bool Passed { get; set; }
[ForeignKey("Employee")]
public int? EmployeesId { get; set; }
public Employee? Employee { get; set; }
}
}