17 lines
364 B
C#
17 lines
364 B
C#
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace LawCompanyDatabaseImplement.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();
|
|||
|
|
|||
|
}
|
|||
|
}
|