NetEnhancements.Identity 0.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package NetEnhancements.Identity --version 0.0.8                
NuGet\Install-Package NetEnhancements.Identity -Version 0.0.8                
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.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEnhancements.Identity --version 0.0.8                
#r "nuget: NetEnhancements.Identity, 0.0.8"                
#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.0.8

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

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 net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 204 4/26/2023
0.0.2 168 4/26/2023
0.0.1 164 4/26/2023