18 lines
411 B
C#
18 lines
411 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DatabaseImplement.Models
|
|
{
|
|
public class WorkerWorkshop
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public int WorkerId { get; set; }
|
|
[Required]
|
|
public int WorkshopId { get; set; }
|
|
[Required]
|
|
public int Count { get; set; }
|
|
public virtual Worker Worker { get; set; } = new();
|
|
public virtual Workshop Workshop { get; set; } = new();
|
|
}
|
|
}
|