A LiteDB provider for ASP.NET Core Identity framework.
https://www.nuget.org/packages/AspNetCore.Identity.LiteDB
You have to add the following lines to your Startup.cs in the ASP.NET Core Project.
public void ConfigureServices(IServiceCollection services)
{
// Add LiteDB Dependency
services.AddSingleton<LiteDbContext>();
services.AddIdentity<ApplicationUser, IdentityRole>(options =>
{
options.Password.RequireDigit = false;
options.Password.RequireUppercase = false;
options.Password.RequireLowercase = false;
options.Password.RequireNonAlphanumeric = false;
options.Password.RequiredLength = 6;
})
.AddUserStore<LiteDbUserStore<ApplicationUser>>()
.AddRoleStore<LiteDbRoleStore<IdentityRole>>()
.AddDefaultTokenProviders();
}
Also make sure you use the right using Statements in Startup.cs, AccountController, ManageController and Values Controller.
using AspNetCore.Identity.LiteDB;
using AspNetCore.Identity.LiteDB.Models;