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

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

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 729 2/25/2025
9.0.2 141,617 2/11/2025
9.0.1 303,727 1/14/2025
9.0.0 790,292 11/12/2024
9.0.0-rc.2.24474.3 23,616 10/8/2024
9.0.0-rc.1.24452.1 7,878 9/10/2024
9.0.0-preview.7.24406.2 26,059 8/13/2024
9.0.0-preview.6.24328.4 50,995 7/9/2024
9.0.0-preview.5.24306.11 2,849 6/11/2024
9.0.0-preview.4.24267.6 3,311 5/21/2024
9.0.0-preview.3.24172.13 71,584 4/11/2024
9.0.0-preview.2.24128.4 3,679 3/12/2024
9.0.0-preview.1.24081.5 25,414 2/13/2024
8.0.13 74,074 2/11/2025
8.0.12 222,289 1/14/2025
8.0.11 1,027,115 11/12/2024
8.0.10 1,608,767 10/8/2024
8.0.8 2,264,938 8/13/2024
8.0.7 1,570,112 7/9/2024
8.0.6 1,921,935 5/28/2024
8.0.5 859,974 5/14/2024
8.0.4 1,937,663 4/9/2024
8.0.3 1,443,268 3/12/2024
8.0.2 1,806,093 2/13/2024
8.0.1 1,594,018 1/9/2024
8.0.0 2,990,569 11/14/2023
8.0.0-rc.2.23480.2 51,937 10/10/2023
8.0.0-rc.1.23421.29 24,792 9/12/2023
8.0.0-preview.7.23375.9 49,217 8/8/2023
8.0.0-preview.6.23329.11 52,839 7/11/2023
8.0.0-preview.5.23302.2 9,259 6/13/2023
8.0.0-preview.4.23260.4 6,953 5/16/2023
8.0.0-preview.3.23177.8 11,434 4/11/2023
8.0.0-preview.2.23153.2 93,927 3/14/2023
8.0.0-preview.1.23112.2 58,793 2/21/2023
7.0.20 274,289 5/28/2024
7.0.19 33,024 5/14/2024
7.0.18 82,454 4/9/2024
7.0.17 323,044 3/12/2024
7.0.16 192,927 2/13/2024
7.0.15 316,287 1/9/2024
7.0.14 454,716 11/14/2023
7.0.13 721,283 10/24/2023
7.0.12 457,610 10/10/2023
7.0.11 800,659 9/12/2023
7.0.10 909,900 8/8/2023
7.0.9 730,276 7/11/2023
7.0.8 460,207 6/22/2023
7.0.7 266,026 6/13/2023
7.0.5 2,434,765 4/11/2023
7.0.4 903,357 3/14/2023
7.0.3 1,015,028 2/14/2023
7.0.2 1,341,653 1/10/2023
7.0.1 516,715 12/13/2022
7.0.0 1,383,512 11/7/2022
7.0.0-rc.2.22476.2 41,252 10/11/2022
7.0.0-rc.1.22427.2 74,169 9/14/2022
7.0.0-preview.7.22376.6 9,195 8/9/2022
7.0.0-preview.6.22330.3 4,001 7/12/2022
7.0.0-preview.5.22303.8 7,414 6/14/2022
7.0.0-preview.4.22251.1 6,935 5/10/2022
7.0.0-preview.3.22178.4 4,006 4/13/2022
7.0.0-preview.2.22153.2 2,387 3/14/2022
7.0.0-preview.1.22109.13 2,349 2/17/2022
6.0.36 59,933 11/12/2024
6.0.35 54,267 10/8/2024
6.0.33 498,568 8/13/2024
6.0.32 75,122 7/9/2024
6.0.31 90,411 5/28/2024
6.0.30 64,592 5/14/2024
6.0.29 203,972 4/9/2024
6.0.28 235,234 3/12/2024
6.0.27 185,931 2/13/2024
6.0.26 372,040 1/9/2024
6.0.25 443,751 11/14/2023
6.0.24 237,514 10/24/2023
6.0.23 194,044 10/10/2023
6.0.22 392,715 9/12/2023
6.0.21 479,145 8/8/2023
6.0.20 410,032 7/11/2023
6.0.19 276,580 6/22/2023
6.0.18 253,825 6/13/2023
6.0.16 1,238,423 4/11/2023
6.0.15 581,158 3/14/2023
6.0.14 736,802 2/14/2023
6.0.13 1,054,694 1/10/2023
6.0.12 732,699 12/13/2022
6.0.11 1,328,404 11/7/2022
6.0.10 2,001,575 10/11/2022
6.0.9 1,950,164 9/13/2022
6.0.8 2,493,450 8/9/2022
6.0.7 2,441,568 7/12/2022
6.0.6 1,589,507 6/14/2022
6.0.5 2,729,964 5/10/2022
6.0.4 1,961,731 4/11/2022
6.0.3 2,132,980 3/8/2022
6.0.2 2,541,938 2/8/2022
6.0.1 3,006,077 12/14/2021
6.0.0 5,689,721 11/8/2021
6.0.0-rc.2.21480.10 36,771 10/12/2021
6.0.0-rc.1.21452.15 35,015 9/14/2021
6.0.0-preview.7.21378.6 21,636 8/10/2021
6.0.0-preview.6.21355.2 11,297 7/14/2021
6.0.0-preview.5.21301.17 13,221 6/15/2021
6.0.0-preview.4.21253.5 6,840 5/24/2021
6.0.0-preview.3.21201.13 18,029 4/8/2021
6.0.0-preview.2.21154.6 5,073 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,150 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 924,851 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 136,512 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 307,398 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 206,979 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 397,454 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 496,696 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,139,109 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,266,971 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,254,781 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,162,177 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,553,732 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,214,614 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 1,453,020 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,284,825 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,075,696 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 955,344 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 1,029,164 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,847,844 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 23,566 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,734 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,865 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,056 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,785 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,660 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,772 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,382 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,409 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,015 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 222,239 12/13/2022
3.1.31 31,144 11/8/2022
3.1.30 35,586 10/11/2022
3.1.29 34,789 9/13/2022
3.1.28 52,944 8/9/2022
3.1.27 51,321 7/12/2022
3.1.26 40,236 6/14/2022
3.1.25 85,486 5/10/2022
3.1.24 72,261 4/11/2022
3.1.23 144,833 3/8/2022
3.1.22 361,473 12/14/2021
3.1.21 345,687 11/7/2021
3.1.20 222,825 10/11/2021
3.1.19 139,245 9/14/2021
3.1.18 307,701 8/10/2021
3.1.17 180,769 7/13/2021
3.1.16 218,056 6/8/2021
3.1.15 289,964 5/11/2021
3.1.14 272,755 4/6/2021
3.1.13 424,206 3/9/2021
3.1.12 521,414 2/9/2021
3.1.11 589,427 1/12/2021
3.1.10 1,194,046 11/9/2020
3.1.9 1,597,454 10/13/2020
3.1.8 2,974,582 9/8/2020
3.1.7 1,430,400 8/11/2020
3.1.6 1,478,853 7/14/2020
3.1.5 1,702,772 6/9/2020
3.1.4 1,200,425 5/12/2020
3.1.3 2,423,905 3/24/2020
3.1.2 1,954,382 2/18/2020
3.1.1 1,911,901 1/14/2020
3.1.0 2,328,223 12/3/2019
3.1.0-preview3.19555.2 12,488 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 6,869 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 9,734 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 57,621 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 15,339 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 2,101,154 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 22,178 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 21,281 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 14,330 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 32,729 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 16,553 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 11,718 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 3,622 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,715 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,604 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 3,121 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 989 1/14/2025
2.2.0 16,674,198 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 71,582 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 38,038 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,157 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.6 6,819,400 11/13/2018
2.1.3 7,950,580 8/21/2018
2.1.2 3,399,045 7/10/2018
2.1.1 10,090,431 6/18/2018
2.1.0 3,731,556 5/29/2018
2.1.0-rc1-final 26,154 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 26,151 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 42,345 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 2,394,667 7/10/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 2,394,622 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,622,210 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,518,339 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,789,452 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,211 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 28,064 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 19,760 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 23,750 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 7,740 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 25,846 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 318,084 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 196,714 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 258,646 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 9,601 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 4,113 7/10/2018 1.0.6 is deprecated because it is no longer maintained.
1.0.5 4,918 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 7,491 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 6,816 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 218,615 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 27,733 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 337,050 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 36,634 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.