Premmerce Documentation > General > Other General Questions

About Premmerce

Introduction

Full Features

Installation

Prerequisite

Setup & Installation

Table or Grid

Basic Usage

Disable Column Sorting

Disable Column Export

Change Search Placeholder

Custom Column Template

Add Buttons to Action Column

Hyperlink Column Text

Specific Roles to View Column

Add or remove column

Filter column

CSS and JS

Edit Color

File validation

General

Password Validation

Bulk Import

Other

Edit translation

Edit footer

Add more user roles

  1. Access your database, right click on it and click “New Query”

  2. Run this query:

    insert into AspNetRoles (Id,Name,NormalizedName) values (NEWID(),'MyNewRole','MYNEWROLE')
    

Access current user’s avatar and roles from the view

  1. You can directly access ViewBag.Avatar from any view page
  2. Related code:
    1. Setup once here: Filters > ViewBagFilter.cs and usable in any view page.

    2. /Views/Shared/_LoginPartial.cshtml

      image.png

Remove date time on the file name

  1. Open /wwwroot/js/auratheme.table.js.
  2. Use CTRL + F to search for -${getCurrentDateTimeForFileName()}.
  3. Delete the -${getCurrentDateTimeForFileName()} portion of the code.

Notification toast

List of packages used in the project

image.png

Corresponding .NET CLI commands:

dotnet add package DocumentFormat.OpenXml --version 3.2.0
dotnet add package ExcelDataReader --version 3.7.0
dotnet add package ExcelDataReader.DataSet --version 3.7.0
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore --version 8.0.8
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 8.0.8
dotnet add package Microsoft.AspNetCore.Identity.UI --version 8.0.8
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson --version 8.0.11
dotnet add package Microsoft.AspNetCore.SignalR.Client --version 8.0.11
dotnet add package Microsoft.AspNetCore.SignalR.Common --version 8.0.11
dotnet add package Microsoft.EntityFrameworkCore --version 8.0.11
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 8.0.11
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 8.0.11
dotnet add package Microsoft.Extensions.DependencyInjection --version 8.0.1
dotnet add package Microsoft.Extensions.Http --version 8.0.1
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --version 8.0.7
dotnet add package Stripe.net --version 48.1.0