Rishu
Rishu

Reputation: 23

AbpFeatures and AbpEditions

Can anyone please tell me what are the uses of the tables(AbpFeatures and AbpEditions) in Boilerplate Framework Application(Asp.net core with Angular).

Thanks in advance.

Upvotes: 1

Views: 690

Answers (1)

aaron
aaron

Reputation: 43098

Edition Management:

Most SaaS (multi-tenant) applications have editions (packages) that have different features. Thus, they can provide different price and feature options to their tenants (customers).

Edition is a simple entity that represents an edition (or package) of the application.

Feature Management:

ASP.NET Boilerplate provides a feature system to make it easier. We can define features, check if a feature is enabled for a tenant and integrate feature system to other ASP.NET Boilerplate concepts (like authorization and navigation).

A feature can be:

  • "true" or "false" — enabled or disabled (for an edition or for a tenant), or
  • an arbitrary value.

Usage:

[RequiresFeature("ExportToExcel")]
public async Task<FileDto> GetReportToExcel(...)
{
    // ...
}

Upvotes: 1

Related Questions