PIbd-23_Starostin_I.K._Cour.../STODataBaseImplement/CarTechnicalWork.cs

23 lines
613 B
C#
Raw Normal View History

2024-05-01 14:33:15 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseImplement
{
public class CarTechnicalWork
{
public int Id { get; set; }
[Required]
public int CarId { get; set; }
[Required]
public int TechnicalWorkId { get; set; }
[Required]
public int Count { get; set; }
public virtual Car Car { get; set; } = new();
public virtual TechnicalWork TechnicalWork { get; set; } = new();
}
}