NetEnhancements.Identity 0.13.0

dotnet add package NetEnhancements.Identity --version 0.13.0                
NuGet\Install-Package NetEnhancements.Identity -Version 0.13.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetEnhancements.Identity" Version="0.13.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEnhancements.Identity --version 0.13.0                
#r "nuget: NetEnhancements.Identity, 0.13.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetEnhancements.Identity as a Cake Addin
#addin nuget:?package=NetEnhancements.Identity&version=0.13.0

// Install NetEnhancements.Identity as a Cake Tool
#tool nuget:?package=NetEnhancements.Identity&version=0.13.0                

NetEnhancements.Identity

A default implementation of ASP.NET Core Identity, with GUID PKs, extension methods to look up users, an Identity database schema and an ApplicationUserManager.

Typical usage:

public class YourAppDbContext : NetEnhancements.Identity.IdentityDbContext
{
    public YourAppDbContext(DbContextOptions<YourAppDbContext> options)
        : base(options) { }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        base.OnConfiguring(optionsBuilder);

        // Apply Modified to ITimestampedEntity implementors.
        optionsBuilder.AddInterceptors(new TimestampedEntityInterceptor());
    }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        // Default values for Id and Created for all IGuidEntity and ITimestampedEntity.
        modelBuilder.ApplyDefaultValues();
    }
}

Dependency injection in an ASP.NET Core web app:

var builder = WebApplication.CreateBuilder(args);

// var mvcBuilder = builder.Services.AddMvc()...

builder.Services.AddIdentityService<YourAppDbContext>();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.13.0 127 8/17/2024
0.12.0 224 9/11/2023
0.11.0 152 9/6/2023
0.10.0 157 8/23/2023
0.0.9 173 8/11/2023
0.0.8 149 8/10/2023
0.0.7 159 8/10/2023
0.0.6 208 7/5/2023
0.0.5 147 7/5/2023
0.0.4 190 4/26/2023
0.0.3 202 4/26/2023
0.0.2 168 4/26/2023
0.0.1 164 4/26/2023