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.

RestaurantRole.cs 573B

1234567891011121314151617181920
  1. using ProRestaurant.Models.Accounts;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace ProRestaurant.Models.Restaurants
  5. {
  6. public class RestaurantRole : BaseObject
  7. {
  8. [ForeignKey("Restaurant")]
  9. public int RestaurantId { get; set; }
  10. public string RoleName { get; set; }
  11. public List<RestaurantRolePremission> Permissions { get; set; }
  12. public virtual Restaurant Restaurant { get; set; }
  13. [NotMapped]
  14. public List<User> Users { get; set; }
  15. }
  16. }