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

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Identity.EntityFrameworkCore.
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 10.0.0-preview.1.25120.3                
NuGet\Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 10.0.0-preview.1.25120.3                
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.1.25120.3" />                
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.1.25120.3                
#r "nuget: Microsoft.AspNetCore.Identity.EntityFrameworkCore, 10.0.0-preview.1.25120.3"                
#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.1.25120.3&prerelease

// Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&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 (996)

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 (308)

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.1.25120.3 1,578 2/25/2025
9.0.2 221,702 2/11/2025
9.0.1 328,899 1/14/2025
9.0.0 826,391 11/12/2024
9.0.0-rc.2.24474.3 23,833 10/8/2024
9.0.0-rc.1.24452.1 7,969 9/10/2024
9.0.0-preview.7.24406.2 26,946 8/13/2024
9.0.0-preview.6.24328.4 54,127 7/9/2024
9.0.0-preview.5.24306.11 2,856 6/11/2024
9.0.0-preview.4.24267.6 3,321 5/21/2024
9.0.0-preview.3.24172.13 71,618 4/11/2024
9.0.0-preview.2.24128.4 3,693 3/12/2024
9.0.0-preview.1.24081.5 25,456 2/13/2024
8.0.13 113,763 2/11/2025
8.0.12 252,893 1/14/2025
8.0.11 1,089,275 11/12/2024
8.0.10 1,669,220 10/8/2024
8.0.8 2,323,234 8/13/2024
8.0.7 1,604,614 7/9/2024
8.0.6 1,953,674 5/28/2024
8.0.5 872,986 5/14/2024
8.0.4 1,974,385 4/9/2024
8.0.3 1,464,898 3/12/2024
8.0.2 1,827,314 2/13/2024
8.0.1 1,609,682 1/9/2024
8.0.0 3,035,014 11/14/2023
8.0.0-rc.2.23480.2 52,038 10/10/2023
8.0.0-rc.1.23421.29 24,813 9/12/2023
8.0.0-preview.7.23375.9 49,766 8/8/2023
8.0.0-preview.6.23329.11 54,235 7/11/2023
8.0.0-preview.5.23302.2 9,265 6/13/2023
8.0.0-preview.4.23260.4 6,971 5/16/2023
8.0.0-preview.3.23177.8 11,623 4/11/2023
8.0.0-preview.2.23153.2 93,951 3/14/2023
8.0.0-preview.1.23112.2 58,859 2/21/2023
7.0.20 284,934 5/28/2024
7.0.19 33,594 5/14/2024
7.0.18 83,547 4/9/2024
7.0.17 324,131 3/12/2024
7.0.16 193,865 2/13/2024
7.0.15 320,190 1/9/2024
7.0.14 457,352 11/14/2023
7.0.13 726,107 10/24/2023
7.0.12 459,660 10/10/2023
7.0.11 803,732 9/12/2023
7.0.10 912,847 8/8/2023
7.0.9 733,867 7/11/2023
7.0.8 461,961 6/22/2023
7.0.7 266,820 6/13/2023
7.0.5 2,447,921 4/11/2023
7.0.4 905,284 3/14/2023
7.0.3 1,017,686 2/14/2023
7.0.2 1,344,801 1/10/2023
7.0.1 517,979 12/13/2022
7.0.0 1,388,181 11/7/2022
7.0.0-rc.2.22476.2 41,323 10/11/2022
7.0.0-rc.1.22427.2 74,185 9/14/2022
7.0.0-preview.7.22376.6 9,231 8/9/2022
7.0.0-preview.6.22330.3 4,006 7/12/2022
7.0.0-preview.5.22303.8 7,432 6/14/2022
7.0.0-preview.4.22251.1 6,941 5/10/2022
7.0.0-preview.3.22178.4 4,018 4/13/2022
7.0.0-preview.2.22153.2 2,392 3/14/2022
7.0.0-preview.1.22109.13 2,358 2/17/2022
6.0.36 64,259 11/12/2024
6.0.35 56,485 10/8/2024
6.0.33 515,796 8/13/2024
6.0.32 76,205 7/9/2024
6.0.31 91,379 5/28/2024
6.0.30 65,376 5/14/2024
6.0.29 208,424 4/9/2024
6.0.28 238,610 3/12/2024
6.0.27 187,249 2/13/2024
6.0.26 373,959 1/9/2024
6.0.25 446,534 11/14/2023
6.0.24 239,627 10/24/2023
6.0.23 195,196 10/10/2023
6.0.22 394,897 9/12/2023
6.0.21 481,519 8/8/2023
6.0.20 412,038 7/11/2023
6.0.19 278,077 6/22/2023
6.0.18 256,152 6/13/2023
6.0.16 1,263,690 4/11/2023
6.0.15 583,264 3/14/2023
6.0.14 739,660 2/14/2023
6.0.13 1,058,474 1/10/2023
6.0.12 735,444 12/13/2022
6.0.11 1,331,906 11/7/2022
6.0.10 2,007,612 10/11/2022
6.0.9 1,956,143 9/13/2022
6.0.8 2,499,802 8/9/2022
6.0.7 2,449,423 7/12/2022
6.0.6 1,592,958 6/14/2022
6.0.5 2,735,605 5/10/2022
6.0.4 1,964,600 4/11/2022
6.0.3 2,138,217 3/8/2022
6.0.2 2,545,347 2/8/2022
6.0.1 3,014,258 12/14/2021
6.0.0 5,722,590 11/8/2021
6.0.0-rc.2.21480.10 36,798 10/12/2021
6.0.0-rc.1.21452.15 35,062 9/14/2021
6.0.0-preview.7.21378.6 21,668 8/10/2021
6.0.0-preview.6.21355.2 11,304 7/14/2021
6.0.0-preview.5.21301.17 13,235 6/15/2021
6.0.0-preview.4.21253.5 6,850 5/24/2021
6.0.0-preview.3.21201.13 18,099 4/8/2021
6.0.0-preview.2.21154.6 5,085 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,226 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 927,669 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 136,772 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 308,109 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 207,400 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 398,097 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 497,981 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,140,770 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,268,590 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,256,345 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,163,417 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,555,064 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,215,820 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 1,454,536 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,286,532 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,076,615 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 955,946 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 1,030,559 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,849,575 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 23,581 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,749 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,875 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,072 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,795 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,672 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,782 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,396 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,424 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,026 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 224,712 12/13/2022
3.1.31 31,325 11/8/2022
3.1.30 35,694 10/11/2022
3.1.29 34,847 9/13/2022
3.1.28 53,029 8/9/2022
3.1.27 51,396 7/12/2022
3.1.26 40,558 6/14/2022
3.1.25 85,814 5/10/2022
3.1.24 72,344 4/11/2022
3.1.23 145,560 3/8/2022
3.1.22 362,618 12/14/2021
3.1.21 346,768 11/7/2021
3.1.20 223,309 10/11/2021
3.1.19 139,632 9/14/2021
3.1.18 308,069 8/10/2021
3.1.17 181,306 7/13/2021
3.1.16 218,595 6/8/2021
3.1.15 290,378 5/11/2021
3.1.14 272,867 4/6/2021
3.1.13 424,514 3/9/2021
3.1.12 522,108 2/9/2021
3.1.11 590,552 1/12/2021
3.1.10 1,194,767 11/9/2020
3.1.9 1,598,284 10/13/2020
3.1.8 2,976,229 9/8/2020
3.1.7 1,432,754 8/11/2020
3.1.6 1,480,467 7/14/2020
3.1.5 1,705,190 6/9/2020
3.1.4 1,201,833 5/12/2020
3.1.3 2,426,478 3/24/2020
3.1.2 1,955,830 2/18/2020
3.1.1 1,913,712 1/14/2020
3.1.0 2,330,846 12/3/2019
3.1.0-preview3.19555.2 12,504 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 6,892 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 9,766 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 57,778 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 15,359 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 2,104,670 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 22,193 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 21,295 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 14,339 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 32,775 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 16,566 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 11,731 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 3,641 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,729 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,618 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 3,135 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 1,159 1/14/2025
2.2.0 16,698,803 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 71,608 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 38,072 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,179 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.6 6,824,599 11/13/2018
2.1.3 7,953,266 8/21/2018
2.1.2 3,401,073 7/10/2018
2.1.1 10,128,250 6/18/2018
2.1.0 3,733,104 5/29/2018
2.1.0-rc1-final 26,188 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 26,186 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 42,381 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 2,398,160 7/10/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 2,396,116 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,625,839 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,524,289 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,794,537 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,291 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 28,106 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 19,922 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 23,792 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 7,764 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 25,876 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 318,265 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 196,925 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 258,709 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 9,621 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 4,142 7/10/2018 1.0.6 is deprecated because it is no longer maintained.
1.0.5 4,941 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 7,538 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 6,845 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 218,813 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 27,763 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 338,795 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 36,655 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.