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

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

// Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.2.25164.1&prerelease                

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1.0K)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Identity.EntityFrameworkCore:

Package Downloads
Microsoft.AspNetCore.App

Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.AspNetCore.All

Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.AspNetCore.ApiAuthorization.IdentityServer

ASP.NET Core API Authorization package powered by Identity Server. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/fb4b5a21ebd67b31fff4ddf5c039181da504c932

Microting.eFormApi.BasePn

Package Description

Finbuckle.MultiTenant.EntityFrameworkCore

Entity Framework Core support for Finbuckle.MultiTenant.

GitHub repositories (293)

Showing the top 5 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
Version Downloads Last updated
10.0.0-preview.2.25164.1 1,048 3/18/2025
10.0.0-preview.1.25120.3 2,353 2/25/2025
9.0.3 144,509 3/11/2025
9.0.2 370,463 2/11/2025
9.0.1 390,116 1/14/2025
9.0.0 915,751 11/12/2024
9.0.0-rc.2.24474.3 25,912 10/8/2024
9.0.0-rc.1.24452.1 8,095 9/10/2024
9.0.0-preview.7.24406.2 28,667 8/13/2024
9.0.0-preview.6.24328.4 65,091 7/9/2024
9.0.0-preview.5.24306.11 2,882 6/11/2024
9.0.0-preview.4.24267.6 3,352 5/21/2024
9.0.0-preview.3.24172.13 71,697 4/11/2024
9.0.0-preview.2.24128.4 3,811 3/12/2024
9.0.0-preview.1.24081.5 25,688 2/13/2024
8.0.14 108,509 3/11/2025
8.0.13 189,514 2/11/2025
8.0.12 335,617 1/14/2025
8.0.11 1,264,823 11/12/2024
8.0.10 1,836,221 10/8/2024
8.0.8 2,486,290 8/13/2024
8.0.7 1,691,991 7/9/2024
8.0.6 2,044,398 5/28/2024
8.0.5 911,780 5/14/2024
8.0.4 2,078,099 4/9/2024
8.0.3 1,524,875 3/12/2024
8.0.2 1,884,932 2/13/2024
8.0.1 1,652,630 1/9/2024
8.0.0 3,152,268 11/14/2023
8.0.0-rc.2.23480.2 52,242 10/10/2023
8.0.0-rc.1.23421.29 24,881 9/12/2023
8.0.0-preview.7.23375.9 50,658 8/8/2023
8.0.0-preview.6.23329.11 57,245 7/11/2023
8.0.0-preview.5.23302.2 9,280 6/13/2023
8.0.0-preview.4.23260.4 7,012 5/16/2023
8.0.0-preview.3.23177.8 11,990 4/11/2023
8.0.0-preview.2.23153.2 94,144 3/14/2023
8.0.0-preview.1.23112.2 59,001 2/21/2023
7.0.20 312,336 5/28/2024
7.0.19 35,113 5/14/2024
7.0.18 86,026 4/9/2024
7.0.17 326,619 3/12/2024
7.0.16 196,433 2/13/2024
7.0.15 330,243 1/9/2024
7.0.14 464,940 11/14/2023
7.0.13 736,381 10/24/2023
7.0.12 465,112 10/10/2023
7.0.11 811,479 9/12/2023
7.0.10 919,645 8/8/2023
7.0.9 744,048 7/11/2023
7.0.8 465,262 6/22/2023
7.0.7 268,972 6/13/2023
7.0.5 2,481,439 4/11/2023
7.0.4 910,319 3/14/2023
7.0.3 1,024,128 2/14/2023
7.0.2 1,354,178 1/10/2023
7.0.1 521,140 12/13/2022
7.0.0 1,401,006 11/7/2022
7.0.0-rc.2.22476.2 41,497 10/11/2022
7.0.0-rc.1.22427.2 74,211 9/14/2022
7.0.0-preview.7.22376.6 9,276 8/9/2022
7.0.0-preview.6.22330.3 4,014 7/12/2022
7.0.0-preview.5.22303.8 7,469 6/14/2022
7.0.0-preview.4.22251.1 6,954 5/10/2022
7.0.0-preview.3.22178.4 4,042 4/13/2022
7.0.0-preview.2.22153.2 2,404 3/14/2022
7.0.0-preview.1.22109.13 2,377 2/17/2022
6.0.36 75,979 11/12/2024
6.0.35 61,570 10/8/2024
6.0.33 578,506 8/13/2024
6.0.32 79,166 7/9/2024
6.0.31 93,818 5/28/2024
6.0.30 67,279 5/14/2024
6.0.29 217,968 4/9/2024
6.0.28 246,551 3/12/2024
6.0.27 190,291 2/13/2024
6.0.26 378,742 1/9/2024
6.0.25 452,313 11/14/2023
6.0.24 244,585 10/24/2023
6.0.23 197,894 10/10/2023
6.0.22 399,527 9/12/2023
6.0.21 487,943 8/8/2023
6.0.20 417,311 7/11/2023
6.0.19 281,734 6/22/2023
6.0.18 262,300 6/13/2023
6.0.16 1,286,765 4/11/2023
6.0.15 587,752 3/14/2023
6.0.14 747,867 2/14/2023
6.0.13 1,068,568 1/10/2023
6.0.12 741,789 12/13/2022
6.0.11 1,341,814 11/7/2022
6.0.10 2,023,743 10/11/2022
6.0.9 1,973,762 9/13/2022
6.0.8 2,516,875 8/9/2022
6.0.7 2,471,507 7/12/2022
6.0.6 1,601,958 6/14/2022
6.0.5 2,749,351 5/10/2022
6.0.4 1,971,861 4/11/2022
6.0.3 2,150,873 3/8/2022
6.0.2 2,553,306 2/8/2022
6.0.1 3,035,382 12/14/2021
6.0.0 5,815,694 11/8/2021
6.0.0-rc.2.21480.10 36,868 10/12/2021
6.0.0-rc.1.21452.15 35,125 9/14/2021
6.0.0-preview.7.21378.6 21,725 8/10/2021
6.0.0-preview.6.21355.2 11,327 7/14/2021
6.0.0-preview.5.21301.17 13,251 6/15/2021
6.0.0-preview.4.21253.5 6,868 5/24/2021
6.0.0-preview.3.21201.13 18,190 4/8/2021
6.0.0-preview.2.21154.6 5,098 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 12,260 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 936,317 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 137,345 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 309,842 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 208,441 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 399,657 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 501,503 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,145,616 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,272,469 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,259,723 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,166,947 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,558,410 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,218,823 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 1,458,884 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,290,600 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,078,712 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 957,523 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 1,034,295 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,854,116 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 23,599 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 20,766 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 18,897 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 11,103 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 8,815 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 2,686 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 3,797 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 5,415 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 4,443 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 7,042 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 230,839 12/13/2022
3.1.31 31,675 11/8/2022
3.1.30 35,965 10/11/2022
3.1.29 35,006 9/13/2022
3.1.28 53,213 8/9/2022
3.1.27 51,553 7/12/2022
3.1.26 41,156 6/14/2022
3.1.25 86,596 5/10/2022
3.1.24 72,493 4/11/2022
3.1.23 146,778 3/8/2022
3.1.22 365,094 12/14/2021
3.1.21 349,657 11/7/2021
3.1.20 226,000 10/11/2021
3.1.19 140,724 9/14/2021
3.1.18 308,836 8/10/2021
3.1.17 182,491 7/13/2021
3.1.16 219,962 6/8/2021
3.1.15 291,292 5/11/2021
3.1.14 273,223 4/6/2021
3.1.13 425,083 3/9/2021
3.1.12 524,014 2/9/2021
3.1.11 593,684 1/12/2021
3.1.10 1,196,488 11/9/2020
3.1.9 1,600,797 10/13/2020
3.1.8 2,979,358 9/8/2020
3.1.7 1,439,084 8/11/2020
3.1.6 1,484,175 7/14/2020
3.1.5 1,708,644 6/9/2020
3.1.4 1,205,340 5/12/2020
3.1.3 2,433,054 3/24/2020
3.1.2 1,959,722 2/18/2020
3.1.1 1,918,426 1/14/2020
3.1.0 2,337,680 12/3/2019
3.1.0-preview3.19555.2 12,527 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 6,921 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 9,799 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 58,333 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 15,399 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 2,116,513 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 22,217 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 21,314 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 14,354 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 32,821 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 16,582 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 11,747 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 3,661 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,751 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,636 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 3,154 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 1,817 1/14/2025
2.2.0 16,769,355 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 71,653 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 38,116 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,202 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.6 6,837,399 11/13/2018
2.1.3 7,961,089 8/21/2018
2.1.2 3,406,178 7/10/2018
2.1.1 10,224,282 6/18/2018
2.1.0 3,737,312 5/29/2018
2.1.0-rc1-final 26,225 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 26,228 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 42,436 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 2,407,949 7/10/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 2,399,789 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,635,554 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,539,416 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,809,529 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,372 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 28,152 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 20,212 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 23,867 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 7,793 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 25,929 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 318,727 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 197,342 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 258,870 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 9,646 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 4,186 7/10/2018 1.0.6 is deprecated because it is no longer maintained.
1.0.5 4,978 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 7,569 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 6,870 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 219,282 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 27,797 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 344,231 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 36,682 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.