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

28 lines
758 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 Salary : ISalary
{
[Key]
public int Id { get; set; }
public int CountHours { get; set; }
public float PriceHour { get; set; }
public float? Premium { get; set; }
public DateTime? Data { get; set; }
public bool Passed { get; set; }
[ForeignKey("Employee")]
public int? EmployeesId { get; set; }
public Employee? Employee { get; set; }
}
}