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

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.25258.110
                    
NuGet\Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 10.0.0-preview.4.25258.110
                    
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.25258.110" />
                    
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.25258.110" />
                    
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.25258.110
                    
#r "nuget: Microsoft.AspNetCore.Identity.EntityFrameworkCore, 10.0.0-preview.4.25258.110"
                    
#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.25258.110&prerelease
                    
Install Microsoft.AspNetCore.Identity.EntityFrameworkCore as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Identity.EntityFrameworkCore&version=10.0.0-preview.4.25258.110&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. 
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 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.25258.110 0 5/12/2025
10.0.0-preview.3.25172.1 2,597 4/10/2025
10.0.0-preview.2.25164.1 2,145 3/18/2025
10.0.0-preview.1.25120.3 2,474 2/25/2025
9.0.5 0 5/13/2025
9.0.4 259,602 4/8/2025
9.0.3 398,955 3/11/2025
9.0.2 533,333 2/11/2025
9.0.1 484,140 1/14/2025
9.0.0 1,084,001 11/12/2024
9.0.0-rc.2.24474.3 28,232 10/8/2024
9.0.0-rc.1.24452.1 8,368 9/10/2024
9.0.0-preview.7.24406.2 32,000 8/13/2024
9.0.0-preview.6.24328.4 87,175 7/9/2024
9.0.0-preview.5.24306.11 2,969 6/11/2024
9.0.0-preview.4.24267.6 3,489 5/21/2024
9.0.0-preview.3.24172.13 72,128 4/11/2024
9.0.0-preview.2.24128.4 4,104 3/12/2024
9.0.0-preview.1.24081.5 26,243 2/13/2024
8.0.16 0 5/13/2025
8.0.15 141,827 4/8/2025
8.0.14 367,589 3/11/2025
8.0.13 295,703 2/11/2025
8.0.12 472,603 1/14/2025
8.0.11 1,557,781 11/12/2024
8.0.10 2,136,085 10/8/2024
8.0.8 2,760,763 8/13/2024
8.0.7 1,853,777 7/9/2024
8.0.6 2,192,464 5/28/2024
8.0.5 982,160 5/14/2024
8.0.4 2,194,532 4/9/2024
8.0.3 1,632,243 3/12/2024
8.0.2 1,996,422 2/13/2024
8.0.1 1,738,489 1/9/2024
8.0.0 3,394,774 11/14/2023
8.0.0-rc.2.23480.2 52,671 10/10/2023
8.0.0-rc.1.23421.29 25,013 9/12/2023
8.0.0-preview.7.23375.9 52,593 8/8/2023
8.0.0-preview.6.23329.11 61,762 7/11/2023
8.0.0-preview.5.23302.2 9,327 6/13/2023
8.0.0-preview.4.23260.4 7,121 5/16/2023
8.0.0-preview.3.23177.8 12,790 4/11/2023
8.0.0-preview.2.23153.2 94,378 3/14/2023
8.0.0-preview.1.23112.2 59,351 2/21/2023
7.0.20 362,843 5/28/2024
7.0.19 38,655 5/14/2024
7.0.18 90,686 4/9/2024
7.0.17 331,394 3/12/2024
7.0.16 201,027 2/13/2024
7.0.15 343,138 1/9/2024
7.0.14 478,317 11/14/2023
7.0.13 751,673 10/24/2023
7.0.12 474,348 10/10/2023
7.0.11 827,637 9/12/2023
7.0.10 933,254 8/8/2023
7.0.9 764,910 7/11/2023
7.0.8 471,947 6/22/2023
7.0.7 273,305 6/13/2023
7.0.5 2,551,487 4/11/2023
7.0.4 920,497 3/14/2023
7.0.3 1,036,789 2/14/2023
7.0.2 1,370,641 1/10/2023
7.0.1 528,314 12/13/2022
7.0.0 1,424,988 11/7/2022
7.0.0-rc.2.22476.2 41,942 10/11/2022
7.0.0-rc.1.22427.2 74,243 9/14/2022
7.0.0-preview.7.22376.6 9,399 8/9/2022
7.0.0-preview.6.22330.3 4,030 7/12/2022
7.0.0-preview.5.22303.8 7,617 6/14/2022
7.0.0-preview.4.22251.1 6,966 5/10/2022
7.0.0-preview.3.22178.4 4,079 4/13/2022
7.0.0-preview.2.22153.2 2,418 3/14/2022
7.0.0-preview.1.22109.13 2,395 2/17/2022
6.0.36 101,277 11/12/2024
6.0.35 70,191 10/8/2024
6.0.33 672,345 8/13/2024
6.0.32 84,280 7/9/2024
6.0.31 98,402 5/28/2024
6.0.30 70,364 5/14/2024
6.0.29 234,199 4/9/2024
6.0.28 259,649 3/12/2024
6.0.27 196,064 2/13/2024
6.0.26 387,881 1/9/2024
6.0.25 463,263 11/14/2023
6.0.24 252,166 10/24/2023
6.0.23 202,935 10/10/2023
6.0.22 407,087 9/12/2023
6.0.21 498,776 8/8/2023
6.0.20 425,858 7/11/2023
6.0.19 287,850 6/22/2023
6.0.18 274,324 6/13/2023
6.0.16 1,324,039 4/11/2023
6.0.15 596,329 3/14/2023
6.0.14 759,419 2/14/2023
6.0.13 1,086,291 1/10/2023
6.0.12 754,981 12/13/2022
6.0.11 1,360,970 11/7/2022
6.0.10 2,056,801 10/11/2022
6.0.9 2,004,234 9/13/2022
6.0.8 2,546,934 8/9/2022
6.0.7 2,511,228 7/12/2022
6.0.6 1,620,836 6/14/2022
6.0.5 2,772,593 5/10/2022
6.0.4 1,985,874 4/11/2022
6.0.3 2,172,585 3/8/2022
6.0.2 2,569,364 2/8/2022
6.0.1 3,072,378 12/14/2021
6.0.0 5,978,948 11/8/2021
6.0.0-rc.2.21480.10 37,005 10/12/2021
6.0.0-rc.1.21452.15 35,230 9/14/2021
6.0.0-preview.7.21378.6 21,866 8/10/2021
6.0.0-preview.6.21355.2 11,356 7/14/2021
6.0.0-preview.5.21301.17 13,319 6/15/2021
6.0.0-preview.4.21253.5 6,892 5/24/2021
6.0.0-preview.3.21201.13 18,479 4/8/2021
6.0.0-preview.2.21154.6 5,124 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,330 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 954,842 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 138,666 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 311,981 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 210,045 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 403,307 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 508,979 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,154,338 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,279,139 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,265,842 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,174,240 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,566,291 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,223,477 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 1,467,396 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,299,235 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,082,510 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 960,912 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 1,040,436 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,863,034 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 23,636 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,800 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,937 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,166 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,848 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,715 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,832 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,451 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,489 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,075 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 241,807 12/13/2022
3.1.31 32,593 11/8/2022
3.1.30 36,617 10/11/2022
3.1.29 35,295 9/13/2022
3.1.28 53,776 8/9/2022
3.1.27 51,743 7/12/2022
3.1.26 42,411 6/14/2022
3.1.25 87,793 5/10/2022
3.1.24 73,071 4/11/2022
3.1.23 149,264 3/8/2022
3.1.22 372,142 12/14/2021
3.1.21 354,797 11/7/2021
3.1.20 229,744 10/11/2021
3.1.19 142,951 9/14/2021
3.1.18 310,052 8/10/2021
3.1.17 184,834 7/13/2021
3.1.16 222,220 6/8/2021
3.1.15 293,519 5/11/2021
3.1.14 273,931 4/6/2021
3.1.13 427,201 3/9/2021
3.1.12 527,154 2/9/2021
3.1.11 598,899 1/12/2021
3.1.10 1,199,929 11/9/2020
3.1.9 1,606,432 10/13/2020
3.1.8 2,984,390 9/8/2020
3.1.7 1,448,485 8/11/2020
3.1.6 1,490,813 7/14/2020
3.1.5 1,715,403 6/9/2020
3.1.4 1,211,161 5/12/2020
3.1.3 2,445,924 3/24/2020
3.1.2 1,967,535 2/18/2020
3.1.1 1,925,645 1/14/2020
3.1.0 2,351,364 12/3/2019
3.1.0-preview3.19555.2 12,561 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 6,967 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 9,845 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 59,607 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 15,509 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 2,131,268 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 22,268 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 21,354 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 14,386 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 32,920 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 16,616 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 11,777 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 3,692 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 6,787 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,666 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 3,185 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.0 3,390 1/14/2025
2.2.0 16,894,777 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 71,768 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 38,244 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,265 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.6 6,859,668 11/13/2018
2.1.3 7,976,521 8/21/2018
2.1.2 3,415,641 7/10/2018
2.1.1 10,429,036 6/18/2018
2.1.0 3,745,199 5/29/2018
2.1.0-rc1-final 26,307 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 26,298 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 42,532 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 2,425,706 7/10/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 2,406,912 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,652,649 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,570,491 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,837,932 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,605 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 28,252 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 20,763 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 24,001 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 7,850 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 26,206 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 319,598 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 198,222 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 259,147 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 9,688 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 4,266 7/10/2018 1.0.6 is deprecated because it is no longer maintained.
1.0.5 5,031 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 7,672 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 6,925 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 220,519 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 27,878 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 354,269 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 36,727 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.