.NET Core 3.1 Starter Admin Template

Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, feel free to email me.

If you are looking for a template for your upcoming web based .NET core project then probably you come to the right place.
AdminPLUS is a web based light Admin template, developed based on Microsoft’s latest .NET core 3.1, Entity Framework core 3.1.6, Jquery, Javascript and Bootstrap 4. The most amazing part of this template is, you have five popular Relational database connectivity options here.You have flexibility to choose Sql server, Mysql, Sqlite, PostgreSql and Oracle 12c+.
AdminPLUS starter template consists of two separate project, one is AdminAPi project for API or you may call it service and the other is AdminClient project for UI or you may call it client for your API. So here AdminApi is an independent project and you can definitely use this as a service for your any other client project.

For Admin access, Username:admin@2020 Password:admin@2020

For User access, Username:user@2020 Password:user@2020

"ConnectionStrings": {

    "ApiConnStringMssql": "data source=Sangib-PC;initial catalog=AdminDB;
     persist security info=True;Integrated Security=SSPI;",

    "ApiConnStringMysql": "server=localhost;port=3306;database=AdminDB;user=root;",

    "ApiConnStringOracle": "Data Source=(DESCRIPTION=(ADDRESS_LIST=
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orclpdb)));User Id=root;Password=root;",

    "ApiConnStringSqlite": "Data Source=AdminDB.db;",

    "ApiConnStringPostgreSql": "Server=;Port=5432;Database=AdminDB;
    User Id=postgres;Password=postgres;"



public void ConfigureServices(IServiceCollection services)

            //Sql Server Connection String
            /* services.AddDbContextPool<AppDbContext>(opt => opt.UseSqlServer
            (Configuration.GetConnectionString("ApiConnStringMssql"))); */

            //Mysql Connection String

            //Sqlite Connection String
            /* services.AddDbContextPool<AppDbContext>(opt=>opt.UseSqlite
            (Configuration.GetConnectionString("ApiConnStringSqlite"))); */

            //PostgreSql Connection String
            /* services.AddDbContextPool<AppDbContext>(opt=>opt.UseNpgsql
            (Configuration.GetConnectionString("ApiConnStringPostgreSql"))); */

            //Oracle Connection String
            /* services.AddDbContextPool<AppDbContext>(opt=>opt.UseOracle
            (Configuration.GetConnectionString("ApiConnStringOracle"))); */ 


               ->dotnet ef migrations add <MigrationName>

               ->dotnet ef database update

               ->dotnet run

        string GenerateJwtToken(UserInfo userInfo)
            var securityKey=new SymmetricSecurityKey(Encoding.UTF8.GetBytes
            var credentials = new SigningCredentials(securityKey, 
            var claims = new[]
                new Claim(JwtRegisteredClaimNames.Sub, userInfo.UserId.ToString()),
                new Claim("fullName", userInfo.FullName.ToString()),
                new Claim("role",userInfo.RoleName),
                new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()),
            var token = new JwtSecurityToken(
                issuer: _config["Jwt:Issuer"],
                audience: _config["Jwt:Audience"],
                claims: claims,
                expires: DateTime.Now.AddMinutes(180),
                signingCredentials: credentials
            return new JwtSecurityTokenHandler().WriteToken(token);


        protected override void OnModelCreating(ModelBuilder modelBuilder)   
            modelBuilder.Seed();//use this for Sql server,Mysql,Sqlite and PostgreSql
           //modelBuilder.SeedOracle();//use this only for Oracle





  "Logging": {
    "Debug": {
      "LogLevel": {
        "Default": "Warning",
        "AdminClient.Controllers.ErrorController": "Warning",
        "AdminClient.Controllers.HomeController": "Warning",
        "Microsoft": "Warning"
    "LogLevel": {
      "Default": "Trace",
      "AdminClient.Controllers.ErrorController": "Trace",
      "AdminClient.Controllers.HomeController": "Trace",
      "Microsoft": "Warning"
  "AllowedHosts": "*",
  "WebAPIBaseUrl": "http://localhost:5001"


public void ConfigureServices(IServiceCollection services)
            services.AddSession(options =>
                options.IdleTimeout = TimeSpan.FromMinutes(60);



Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. I'll do my best to assist. If you have a more general question relating to the scripts on Codecanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Sangib Kumar Saha