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

17 lines
412 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace LawFirmDatabaseImplement.Models
{
public class VisitClient
{
public int Id { get; set; }
[Required]
public int ClientId { get; set; }
[Required]
public int VisitId { get; set; }
public virtual Client Client { get; set; } = new();
public virtual Visit Visit { get; set; } = new();
}
}