Barsukov_SUBD/DepartmentStaffView/DepartmentStaffDatabase/Models.cs

53 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DepartmentStaffDatabase
{
public class Department
{
public int Id { get; set; }
public string DepartmentName { get; set; }
public string Head { get; set; }
}
public class Position
{
public int Id { get; set; }
public string PositionName { get; set; }
public double Salary { get; set; }
public int DepartmentId { get; set; }
}
public class Employee
{
public int Id { get; set; }
public string EmployeeName { get; set; }
public DateTime Birthdate { get; set; }
public string Address { get; set; }
public string PhoneNumber { get; set; }
public string Email { get; set; }
public int PositionId { get; set; }
}
public class Contract
{
public int Id { get; set; }
public DateTime DateOfConclusion { get; set; }
public int Duration { get; set; }
public int EmployeeId { get; set; }
}
public class Course
{
public int Id { get; set; }
public DateTime DateOfEvent { get; set; }
public int HoursNumber { get; set; }
public string Result { get; set; }
}
public class Employee_Course
{
public int EmployeeId { get; set; }
public int CourseId { get; set; }
}
}