25 lines
560 B
C#
25 lines
560 B
C#
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();
|
|
}
|
|
}
|