From 767c69b904962ec225d31ced7c3d9d4cef24d2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 25 Oct 2021 09:07:53 +0300 Subject: [PATCH] Enhance the 5.0 migration guide. --- docs/en/Migration-Guides/Abp-5-0-Blazor.md | 7 +++++++ docs/en/Migration-Guides/Abp-5_0.md | 19 ++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 docs/en/Migration-Guides/Abp-5-0-Blazor.md diff --git a/docs/en/Migration-Guides/Abp-5-0-Blazor.md b/docs/en/Migration-Guides/Abp-5-0-Blazor.md new file mode 100644 index 0000000000..c13314e86b --- /dev/null +++ b/docs/en/Migration-Guides/Abp-5-0-Blazor.md @@ -0,0 +1,7 @@ +# ABP Blazor UI v4.x to v5.0 Migration Guide + +This document is for the ABP MVC / Razor Pages UI. See also [the main migration guide](Abp-5_0.md). + +## Upgrading to the latest Blazorise + +ABP 5.0 uses the latest version of the [Blazorise](https://blazorise.com/) library. Please upgrade the Blazorise NuGet packages in your solution. \ No newline at end of file diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index a4f89f5039..fba49102c2 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -31,6 +31,8 @@ services.Configure(x => x.UseAbpClockHandleDateTime = false); ## UI Providers * [Angular UI 4.x to 5.0 Migration Guide](Abp-5_0-Angular.md) +* [ASP.NET Core MVC / Razor Pages UI 4.x to 5.0 Migration Guide]() +* [Blazor UI 4.x to 5.0 Migration Guide](Abp-5-0-Blazor.md) ## Modules @@ -38,11 +40,12 @@ This section contains breaking and important changes in the application modules. ### Identity -`IsActive ` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See the related [PR](https://github.com/abpframework/abp/pull/10185). -**After the migration, set this property to `true` for the existing users: `UPDATE AbpUsers SET IsActive=1`** +An `IsActive` (`bool`) property is added to the `IdentityUser` entity. This flag will be checked during the authentication of the users. EF Core developers need to add a new database migration and update their databases. -For EFCore you can set `defaultValue` to `true` in the migration class: -(This will add the column with `true` value for the existing records.) +**After the database migration, set this property to `true` for the existing users: `UPDATE AbpUsers SET IsActive=1`**. Otherwise, none of the users can login to the application. + +Alternatively, you can set `defaultValue` to `true` in the migration class (after adding the migration). +This will add the column with `true` value for the existing records. ```cs public partial class AddIsActiveToIdentityUser : Migration @@ -66,8 +69,14 @@ public partial class AddIsActiveToIdentityUser : Migration } ``` -For document base databases like MongoDB, you need to manually update the `IsActive` field for the existing user records. +For MongoDB, you need to manually update the `IsActive` field for the existing users. ### IdentityServer `IApiScopeRepository.GetByNameAsync` method renamed as `FindByNameAsync`. + +## See Also + +* [Angular UI 4.x to 5.0 Migration Guide](Abp-5_0-Angular.md) +* [ASP.NET Core MVC / Razor Pages UI 4.x to 5.0 Migration Guide]() +* [Blazor UI 4.x to 5.0 Migration Guide](Abp-5-0-Blazor.md)