Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

MenuItem.cs 798B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace ProRestaurant.Models.Restaurants
  4. {
  5. public class MenuItem : BaseObject
  6. {
  7. [ForeignKey("Restaurant")]
  8. public int RestaurantId { get; set; }
  9. public int CategoryId { get; set; }
  10. public string Image { get; set; }
  11. public string Name { get; set; }
  12. public string Description { get; set; }
  13. public decimal Price { get; set; }
  14. public bool OverrideOptions { get; set; }
  15. public bool OutOfStock { get; set; }
  16. public virtual Restaurant Restaurant { get; set; }
  17. [NotMapped]
  18. public string Category { get; set; }
  19. [NotMapped]
  20. public ICollection<MenuOption> Options { get; set; }
  21. }
  22. }