CourseWork_ServiceStation/ServiceStation/ServiceStationDatabaseImplement/Models/SparePartWork.cs

24 lines
545 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationDatabaseImplement.Models
{
public class SparePartWork
{
public int Id { get; set; }
[Required]
public int SparePartId { get; set; }
[Required]
public int WorkId { get; set; }
public virtual SparePart SparePart { get; set; } = new();
public virtual Work Work { get; set; } = new();
}
}