28 lines
528 B
C#
28 lines
528 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
|
|||
|
namespace VeterinaryDatabaseImplement.Models
|
|||
|
{
|
|||
|
public class MedicationPet
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
[Required]
|
|||
|
public int PetId { get; set; }
|
|||
|
[Required]
|
|||
|
public int MedicationId { get; set; }
|
|||
|
public virtual Medication Medication { get; set; } = new();
|
|||
|
public virtual Pet Pet { get; set; } = new();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|