Microsoft.AspNetCore.Identity.EntityFrameworkCore 10.0.0-preview.4.25255.103

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Identity.EntityFrameworkCore.
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.4.25255.103
                    
NuGet\Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 10.0.0-preview.4.25255.103
                    
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="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0-preview.4.25255.103" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0-preview.4.25255.103" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
                    
Project file
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 Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.4.25255.103
                    
#r "nuget: Microsoft.AspNetCore.Identity.EntityFrameworkCore, 10.0.0-preview.4.25255.103"
                    
#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.
#addin nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.4.25255.103&prerelease
                    
Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.4.25255.103&prerelease
                    
Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Tool

About

Microsoft.AspNetCore.Identity.EntityFrameworkCore utilizes Entity Framework Core to provide functionality enabling the storage of user, role, and other identity-related data in a database.

Key Features

  • Provides user and role management
  • Enables secure authentication and authorization mechanisms
  • Allows storage and validatation of user passwords using hashing
  • Tracks email confirmation for user account validation
  • Tracks two-factor authentication to provide an extra layer of security
  • Tracks failed login attempts to help protect against brute-force attacks enabling locking out user accounts after multiple failed login attempts
  • Uses claims to define fine-grained access control policies
  • Seamlessly integrates with Entity Framework Core for data storage and retrieval

How to Use

To use Microsoft.AspNetCore.Identity.EntityFrameworkCore, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore

Configuration

Add the following code to the Program.cs of your ASP.NET Core app:

builder.Services.AddDbContext<ApplicationDbContext>(options =>
    options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));

builder.Services.AddDefaultIdentity<ApplicationUser>()
    .AddEntityFrameworkStores<ApplicationDbContext>();

You can replace ApplicationDbContext with your own database context class derived from IdentityDbContext and ApplicationUser with your own user class containing additional properties derived from IdentityUser.

Make sure to configure the connection string via "ConnectionStrings:DefaultConnection" (or whatever you rename it to) so it can connect to your database.

Main Types

The main types provided by Microsoft.AspNetCore.Identity.EntityFrameworkCore include:

  • IdentityDbContext: Provides the database context for storing and managing user, role, and other identity-related data
  • IdentityUserContext: Provides methods and properties for querying and manipulating user information
  • RoleStore: Provides methods for creating, updating, and deleting roles, as well as querying and managing role-related data
  • UserStore: Provides methods for creating, updating, and deleting users, as well as querying and managing user-related data
  • UserOnlyStore: Provides methods for creating, updating, and deleting users, as well as querying and managing user-related data for users without roles

Additional Documentation

For additional documentation and examples, refer to the official documentation on ASP.NET Core Identity.

Feedback & Contributing

Microsoft.AspNetCore.Identity.EntityFrameworkCore is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

GitHub repositories (316)

Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Identity.EntityFrameworkCore:

Repository Stars
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 4, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
dotnet/eShop
A reference .NET application implementing an eCommerce site
Kareadita/Kavita
Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
immense/Remotely
A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
openiddict/openiddict-core
Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
cobbr/Covenant
Covenant is a collaborative .NET C2 framework for red teamers.
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
Version Downloads Last updated
10.0.0-preview.4.25255.103 0 5/12/2025
3.0.0-preview-19075-0444 5 1/28/2019
3.0.0-preview-18579-0056 2 11/30/2018
3.0.0-preview-18579-0053 2 11/30/2018