ApplicationRole.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // ======================================
  2. // Author: Ebenezer Monney
  3. // Email: info@ebenmonney.com
  4. // Copyright (c) 2017 www.ebenmonney.com
  5. //
  6. // ==> Gun4Hire: contact@ebenmonney.com
  7. // ======================================
  8. using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Linq;
  12. using System.Threading.Tasks;
  13. namespace DAL.Models
  14. {
  15. public class ApplicationRole : IdentityRole
  16. {
  17. /// <summary>
  18. /// Initializes a new instance of <see cref="ApplicationRole"/>.
  19. /// </summary>
  20. /// <remarks>
  21. /// The Id property is initialized to from a new GUID string value.
  22. /// </remarks>
  23. public ApplicationRole()
  24. {
  25. }
  26. /// <summary>
  27. /// Initializes a new instance of <see cref="ApplicationRole"/>.
  28. /// </summary>
  29. /// <param name="roleName">The role name.</param>
  30. /// <remarks>
  31. /// The Id property is initialized to from a new GUID string value.
  32. /// </remarks>
  33. public ApplicationRole(string roleName) : base(roleName)
  34. {
  35. }
  36. /// <summary>
  37. /// Initializes a new instance of <see cref="ApplicationRole"/>.
  38. /// </summary>
  39. /// <param name="roleName">The role name.</param>
  40. /// <param name="description">Description of the role.</param>
  41. /// <remarks>
  42. /// The Id property is initialized to from a new GUID string value.
  43. /// </remarks>
  44. public ApplicationRole(string roleName, string description) : base(roleName)
  45. {
  46. Description = description;
  47. }
  48. /// <summary>
  49. /// Gets or sets the description for this role.
  50. /// </summary>
  51. public string Description { get; set; }
  52. }
  53. }