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

17 lines
392 B
C#
Raw Normal View History

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