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.

MenuOption.cs 925B

123456789101112131415161718192021222324252627
  1. using ProRestaurant.Classes;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace ProRestaurant.Models.Restaurants
  5. {
  6. public class MenuOption : BaseObject
  7. {
  8. [ForeignKey("Restaurant")]
  9. public int RestaurantId { get; set; }
  10. public int CategoryId { get; set; }
  11. public string Description { get; set; }
  12. public OptionType OptionType { get; set; }
  13. public int OptionLimit { get; set; }
  14. public bool IsBasePrice { get; set; }
  15. public int Rank { get; set; }
  16. public int MenuItemId { get; set; }
  17. public ICollection<MenuOptionItem> Options { get; set; }
  18. public virtual Restaurant Restaurant { get; set; }
  19. [NotMapped]
  20. public string CategoryDescription { get; set; }
  21. [NotMapped]
  22. public string OptionTypeDescription { get; set; }
  23. }
  24. }