PIbd-21_Danilov_V.V._Course.../VeterinaryClinic/VeterinaryClinicDatabaseImplement/Models/AnimalMedication.cs

25 lines
560 B
C#
Raw Normal View History

2024-04-30 23:14:53 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VeterinaryClinicDatabaseImplement.Models
{
public class AnimalMedication
{
public int Id { get; set; }
[Required]
public int AnimalId { get; set; }
[Required]
public int MedicationId { get; set; }
public virtual Animal Animal { get; set; } = new();
public virtual Medication Medication { get; set; } = new();
}
}