NetEnhancements.Identity
                             
                            
                                0.19.0
                            
                        
                    dotnet add package NetEnhancements.Identity --version 0.19.0
NuGet\Install-Package NetEnhancements.Identity -Version 0.19.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.19.0" />
        
        
For projects that support PackageReference, copy this XML node into the project file to reference the package.
                    
    
    <PackageVersion Include="NetEnhancements.Identity" Version="0.19.0" />
<PackageReference Include="NetEnhancements.Identity" />
        
        
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
                    
    
    paket add NetEnhancements.Identity --version 0.19.0
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    #r "nuget: NetEnhancements.Identity, 0.19.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.
                    
    
    #:package NetEnhancements.Identity@0.19.0
        
        
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
                    
    
    #addin nuget:?package=NetEnhancements.Identity&version=0.19.0
#tool nuget:?package=NetEnhancements.Identity&version=0.19.0
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    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 | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. | 
        
        Compatible target framework(s)
    
    
        
        Included target framework(s) (in package)
    
    Learn more about Target Frameworks and .NET Standard.
- 
                                                    net9.0- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.6)
- Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (>= 9.0.6)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 9.0.6)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.6)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.6)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.6)
- NetEnhancements.AspNet (>= 0.19.0)
- NetEnhancements.EntityFramework (>= 0.19.0)
- NetEnhancements.Identity.Data (>= 0.19.0)
- NetEnhancements.Shared (>= 0.19.0)
- NetEnhancements.Util (>= 0.19.0)
- Swashbuckle.AspNetCore.Filters (>= 8.0.3)
 
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.19.0 | 30 | 10/30/2025 | 
| 0.18.0 | 26 | 10/30/2025 | 
| 0.17.0 | 151 | 10/13/2025 | 
| 0.16.0 | 152 | 1/19/2025 | 
| 0.15.0 | 151 | 12/3/2024 | 
| 0.14.0 | 144 | 12/2/2024 | 
| 0.13.0 | 193 | 8/17/2024 | 
| 0.12.0 | 284 | 9/11/2023 | 
| 0.11.0 | 216 | 9/6/2023 | 
| 0.10.0 | 219 | 8/23/2023 | 
| 0.0.9 | 237 | 8/11/2023 | 
| 0.0.8 | 212 | 8/10/2023 | 
| 0.0.7 | 235 | 8/10/2023 | 
| 0.0.6 | 282 | 7/5/2023 | 
| 0.0.5 | 215 | 7/5/2023 | 
| 0.0.4 | 276 | 4/26/2023 | 
| 0.0.3 | 299 | 4/26/2023 | 
| 0.0.2 | 264 | 4/26/2023 | 
| 0.0.1 | 249 | 4/26/2023 |