You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MenuItem.cs 753B

12345678910111213141516171819202122232425
  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 virtual Restaurant Restaurant { get; set; }
  16. [NotMapped]
  17. public string Category { get; set; }
  18. [NotMapped]
  19. public ICollection<MenuOption> Options { get; set; }
  20. }
  21. }