PIbd-22_Filippov_D.S._Cours.../VeterinaryDatabaseImplement/Models/VisitPet.cs

16 lines
351 B
C#
Raw Normal View History

2024-05-30 07:33:38 +04:00
using System.ComponentModel.DataAnnotations;
namespace VeterinaryDatabaseImplement.Models
{
public class VisitPet
{
public int Id { get; set; }
[Required]
public int VisitId { get; set; }
[Required]
public int PetId { get; set; }
public virtual Visit Visit { get; set; } = new();
public virtual Pet Pet { get; set; } = new();
}
}