NetEnhancements.Identity
0.0.9
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NetEnhancements.Identity --version 0.0.9
NuGet\Install-Package NetEnhancements.Identity -Version 0.0.9
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.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEnhancements.Identity --version 0.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetEnhancements.Identity, 0.0.9"
#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.9 // Install NetEnhancements.Identity as a Cake Tool #tool nuget:?package=NetEnhancements.Identity&version=0.0.9
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 | 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.
-
net7.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.8)
- Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (>= 7.0.8)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 7.0.8)
- Microsoft.EntityFrameworkCore.SqlServer (>= 7.0.8)
- Microsoft.Extensions.Configuration.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- NetEnhancements.AspNet (>= 0.0.9)
- NetEnhancements.EntityFramework (>= 0.0.9)
- NetEnhancements.Identity.Data (>= 0.0.9)
- NetEnhancements.Shared (>= 0.0.9)
- NetEnhancements.Util (>= 0.0.9)
- Swashbuckle.AspNetCore.Filters (>= 7.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.