RecipeIngredientLink.cs 482 B

123456789101112131415161718
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Recepie.Models
  3. {
  4. public class RecipeIngredientLink
  5. {
  6. public int RecipeId { get; set; }
  7. public int IngredientId { get; set; }
  8. // Amount and measurement information
  9. public string? Amount { get; set; }
  10. public string? Measurement { get; set; }
  11. // Navigation properties
  12. public Recipe? Recipe { get; set; }
  13. public Ingredient? Ingredient { get; set; }
  14. }
  15. }