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

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

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

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 5, 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.
openiddict/openiddict-core
Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
immense/Remotely
A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
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.5.25277.114 1,706 6/6/2025
10.0.0-preview.4.25258.110 2,396 5/12/2025
10.0.0-preview.3.25172.1 2,960 4/10/2025
10.0.0-preview.2.25164.1 17,743 3/18/2025
10.0.0-preview.1.25120.3 2,538 2/25/2025
9.0.6 109,285 6/10/2025
9.0.5 353,165 5/13/2025
9.0.4 494,652 4/8/2025
9.0.3 617,250 3/11/2025
9.0.2 640,741 2/11/2025
9.0.1 557,448 1/14/2025
9.0.0 1,258,344 11/12/2024
9.0.0-rc.2.24474.3 28,568 10/8/2024
9.0.0-rc.1.24452.1 8,469 9/10/2024
9.0.0-preview.7.24406.2 33,993 8/13/2024
9.0.0-preview.6.24328.4 93,651 7/9/2024
9.0.0-preview.5.24306.11 3,263 6/11/2024
9.0.0-preview.4.24267.6 3,736 5/21/2024
9.0.0-preview.3.24172.13 73,119 4/11/2024
9.0.0-preview.2.24128.4 4,264 3/12/2024
9.0.0-preview.1.24081.5 26,699 2/13/2024
8.0.17 51,113 6/10/2025
8.0.16 162,457 5/13/2025
8.0.15 319,082 4/8/2025
8.0.14 604,225 3/11/2025
8.0.13 401,373 2/11/2025
8.0.12 631,738 1/14/2025
8.0.11 1,880,995 11/12/2024
8.0.10 2,482,129 10/8/2024
8.0.8 3,011,513 8/13/2024
8.0.7 2,024,541 7/9/2024
8.0.6 2,352,562 5/28/2024
8.0.5 1,067,492 5/14/2024
8.0.4 2,329,714 4/9/2024
8.0.3 1,738,014 3/12/2024
8.0.2 2,110,409 2/13/2024
8.0.1 1,830,120 1/9/2024
8.0.0 3,693,715 11/14/2023
8.0.0-rc.2.23480.2 52,976 10/10/2023
8.0.0-rc.1.23421.29 25,123 9/12/2023
8.0.0-preview.7.23375.9 54,206 8/8/2023
8.0.0-preview.6.23329.11 68,922 7/11/2023
8.0.0-preview.5.23302.2 9,381 6/13/2023
8.0.0-preview.4.23260.4 7,234 5/16/2023
8.0.0-preview.3.23177.8 13,217 4/11/2023
8.0.0-preview.2.23153.2 94,779 3/14/2023
8.0.0-preview.1.23112.2 59,743 2/21/2023
7.0.20 429,630 5/28/2024
7.0.19 41,320 5/14/2024
7.0.18 95,006 4/9/2024
7.0.17 335,650 3/12/2024
7.0.16 205,598 2/13/2024
7.0.15 357,027 1/9/2024
7.0.14 494,833 11/14/2023
7.0.13 763,281 10/24/2023
7.0.12 482,637 10/10/2023
7.0.11 845,021 9/12/2023
7.0.10 946,945 8/8/2023
7.0.9 790,630 7/11/2023
7.0.8 478,084 6/22/2023
7.0.7 277,263 6/13/2023
7.0.5 2,625,240 4/11/2023
7.0.4 931,806 3/14/2023
7.0.3 1,048,945 2/14/2023
7.0.2 1,405,468 1/10/2023
7.0.1 534,273 12/13/2022
7.0.0 1,453,411 11/7/2022
7.0.0-rc.2.22476.2 42,379 10/11/2022
7.0.0-rc.1.22427.2 74,282 9/14/2022
7.0.0-preview.7.22376.6 9,527 8/9/2022
7.0.0-preview.6.22330.3 4,062 7/12/2022
7.0.0-preview.5.22303.8 7,713 6/14/2022
7.0.0-preview.4.22251.1 7,005 5/10/2022
7.0.0-preview.3.22178.4 4,156 4/13/2022
7.0.0-preview.2.22153.2 2,455 3/14/2022
7.0.0-preview.1.22109.13 2,437 2/17/2022
6.0.36 131,368 11/12/2024
6.0.35 77,559 10/8/2024
6.0.33 804,319 8/13/2024
6.0.32 90,148 7/9/2024
6.0.31 102,750 5/28/2024
6.0.30 73,441 5/14/2024
6.0.29 255,636 4/9/2024
6.0.28 272,789 3/12/2024
6.0.27 202,117 2/13/2024
6.0.26 396,873 1/9/2024
6.0.25 476,071 11/14/2023
6.0.24 260,851 10/24/2023
6.0.23 206,503 10/10/2023
6.0.22 414,611 9/12/2023
6.0.21 510,439 8/8/2023
6.0.20 433,093 7/11/2023
6.0.19 294,766 6/22/2023
6.0.18 286,646 6/13/2023
6.0.16 1,386,123 4/11/2023
6.0.15 605,403 3/14/2023
6.0.14 771,186 2/14/2023
6.0.13 1,108,195 1/10/2023
6.0.12 767,147 12/13/2022
6.0.11 1,384,774 11/7/2022
6.0.10 2,105,478 10/11/2022
6.0.9 2,043,758 9/13/2022
6.0.8 2,579,031 8/9/2022
6.0.7 2,546,893 7/12/2022
6.0.6 1,638,187 6/14/2022
6.0.5 2,800,273 5/10/2022
6.0.4 2,001,052 4/11/2022
6.0.3 2,194,626 3/8/2022
6.0.2 2,587,726 2/8/2022
6.0.1 3,107,194 12/14/2021
6.0.0 6,161,091 11/8/2021
6.0.0-rc.2.21480.10 37,143 10/12/2021
6.0.0-rc.1.21452.15 36,297 9/14/2021
6.0.0-preview.7.21378.6 22,076 8/10/2021
6.0.0-preview.6.21355.2 11,394 7/14/2021
6.0.0-preview.5.21301.17 13,363 6/15/2021
6.0.0-preview.4.21253.5 6,933 5/24/2021
6.0.0-preview.3.21201.13 19,738 4/8/2021
6.0.0-preview.2.21154.6 6,489 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,783 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 976,115 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 140,042 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 313,749 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 211,412 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 407,545 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 513,296 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,163,535 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,294,309 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,287,483 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,198,174 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,584,811 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,245,915 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 1,496,772 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,325,989 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,093,649 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 973,738 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 1,066,643 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,896,049 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 24,808 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,873 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 19,002 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,250 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,912 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,769 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,887 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,509 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,549 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,137 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 253,728 12/13/2022
3.1.31 33,534 11/8/2022
3.1.30 37,366 10/11/2022
3.1.29 35,534 9/13/2022
3.1.28 54,327 8/9/2022
3.1.27 51,870 7/12/2022
3.1.26 43,795 6/14/2022
3.1.25 88,987 5/10/2022
3.1.24 73,373 4/11/2022
3.1.23 151,880 3/8/2022
3.1.22 383,243 12/14/2021
3.1.21 356,074 11/7/2021
3.1.20 232,908 10/11/2021
3.1.19 144,620 9/14/2021
3.1.18 311,241 8/10/2021
3.1.17 185,733 7/13/2021
3.1.16 224,943 6/8/2021
3.1.15 295,745 5/11/2021
3.1.14 274,558 4/6/2021
3.1.13 430,316 3/9/2021
3.1.12 531,632 2/9/2021
3.1.11 605,632 1/12/2021
3.1.10 1,205,115 11/9/2020
3.1.9 1,613,310 10/13/2020
3.1.8 2,990,057 9/8/2020
3.1.7 1,460,441 8/11/2020
3.1.6 1,498,610 7/14/2020
3.1.5 1,731,961 6/9/2020
3.1.4 1,217,655 5/12/2020
3.1.3 2,459,866 3/24/2020
3.1.2 1,974,712 2/18/2020
3.1.1 1,934,218 1/14/2020
3.1.0 2,365,495 12/3/2019
3.1.0-preview3.19555.2 12,629 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 7,034 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 9,901 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 61,060 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 15,607 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 2,151,194 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 22,347 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 21,417 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 14,440 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 33,000 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 16,692 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 11,838 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 3,747 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,856 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,719 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 3,241 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 4,778 1/14/2025
2.2.0 17,031,975 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 71,889 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 38,348 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,348 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.6 6,887,465 11/13/2018
2.1.3 7,994,804 8/21/2018
2.1.2 3,425,287 7/10/2018
2.1.1 10,679,778 6/18/2018
2.1.0 3,754,877 5/29/2018
2.1.0-rc1-final 26,429 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 26,418 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 42,627 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 2,443,682 7/10/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 2,414,468 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,669,947 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,603,907 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,870,561 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,811 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 28,378 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 21,181 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 24,136 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 7,949 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 26,416 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 320,249 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 199,243 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 259,463 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 9,787 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 4,372 7/10/2018 1.0.6 is deprecated because it is no longer maintained.
1.0.5 5,122 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 7,769 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 7,019 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 221,622 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 27,999 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 363,296 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 36,822 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.