PIbd-22_Fedorenko_Puchkina_.../LawFim/LawFirmDatabaseImplement/Models/ConsultationLawyer.cs

16 lines
388 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace LawFirmDatabaseImplement.Models
{
public class ConsultationLawyer
{
public int Id { get; set; }
[Required]
public int ConsultationId { get; set; }
[Required]
public int LawyerId { get; set; }
public virtual Consultation Consultation { get; set; } = new();
public virtual Lawyer Lawyer { get; set; } = new();
}
}