| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- // ======================================
- // Author: Ebenezer Monney
- // Email: info@ebenmonney.com
- // Copyright (c) 2017 www.ebenmonney.com
- //
- // ==> Gun4Hire: contact@ebenmonney.com
- // ======================================
- using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace DAL.Models
- {
- public class ApplicationRole : IdentityRole
- {
- /// <summary>
- /// Initializes a new instance of <see cref="ApplicationRole"/>.
- /// </summary>
- /// <remarks>
- /// The Id property is initialized to from a new GUID string value.
- /// </remarks>
- public ApplicationRole()
- {
- }
- /// <summary>
- /// Initializes a new instance of <see cref="ApplicationRole"/>.
- /// </summary>
- /// <param name="roleName">The role name.</param>
- /// <remarks>
- /// The Id property is initialized to from a new GUID string value.
- /// </remarks>
- public ApplicationRole(string roleName) : base(roleName)
- {
- }
- /// <summary>
- /// Initializes a new instance of <see cref="ApplicationRole"/>.
- /// </summary>
- /// <param name="roleName">The role name.</param>
- /// <param name="description">Description of the role.</param>
- /// <remarks>
- /// The Id property is initialized to from a new GUID string value.
- /// </remarks>
- public ApplicationRole(string roleName, string description) : base(roleName)
- {
- Description = description;
- }
- /// <summary>
- /// Gets or sets the description for this role.
- /// </summary>
- public string Description { get; set; }
- }
- }
|