RecipeImage.cs 394 B

1234567891011121314151617
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace Recepie.Models
  4. {
  5. public class RecipeImage
  6. {
  7. // No ID column - use recepieId as key
  8. [Key]
  9. public int RecipeId { get; set; }
  10. public byte[]? ImageData { get; set; }
  11. // Navigation property
  12. public Recipe? Recipe { get; set; }
  13. }
  14. }