Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
namespace Grand.Domain.Permissions;
/// <summary>
/// Represents a permission
/// </summary>
public class Permission : BaseEntity
{
private ICollection<string> _actions;
private ICollection<string> _customerGroups;
/// <summary>
/// Gets or sets the permission name
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the permission system name
/// </summary>
public string SystemName { get; set; }
/// <summary>
/// Gets or sets the area name
/// </summary>
public string Area { get; set; }
/// <summary>
/// Gets or sets the permission category
/// </summary>
public string Category { get; set; }
/// <summary>
/// Gets or sets customer groups
/// </summary>
public virtual ICollection<string> CustomerGroups {
get => _customerGroups ??= new List<string>();
protected set => _customerGroups = value;
}
/// <summary>
/// Gets or sets actions
/// </summary>
public virtual ICollection<string> Actions {
get => _actions ??= new List<string>();
set => _actions = value;
}
}