NetEnhancements.Identity 0.0.7

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

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

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 125 8/17/2024
0.12.0 222 9/11/2023
0.11.0 150 9/6/2023
0.10.0 155 8/23/2023
0.0.9 171 8/11/2023
0.0.8 147 8/10/2023
0.0.7 157 8/10/2023
0.0.6 206 7/5/2023
0.0.5 145 7/5/2023
0.0.4 188 4/26/2023
0.0.3 200 4/26/2023
0.0.2 166 4/26/2023
0.0.1 162 4/26/2023