Skip to content

Commit 45b9978

Browse files
authored
Merge pull request #22743 from abpframework/abp-8-2.md
docs: update migration guide for ABP 8.2 to include DbSet<IdentitySession> in DbContext.
2 parents d81418d + 87c3de0 commit 45b9978

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/en/release-info/migration-guides/abp-8-2.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ With this version on, ABP Framework allows you to use single blog mode, without
2828
* `Volo.Blogging.Pages.Members` -> `Volo.Blogging.Pages.Blogs.Members` (members folder)
2929

3030
> If you haven't overridden the pages above, then you don't need to make any additional changes. See [#19418](https://github.com/abpframework/abp/pull/19418) for more information.
31+
3132
## Removed `FlagIcon` property from the `ILanguageInfo`
3233

3334
The `FlagIcon` property has been removed from the `ILanguageInfo` interface since we removed the flag icon library in the earlier versions from all of our themes and none of them using it now.
@@ -57,11 +58,20 @@ In this version, the Angular UI has been updated to use the Angular version 17.3
5758

5859
The **Session Management** feature allows you to prevent concurrent login and manage user sessions.
5960

60-
In this version, a new entity called `IdentitySession` has been added to the framework and you should create a new migration and apply it to your database.
61+
In this version, a new entity called `IdentitySession` has been added to the framework and you need to add new `DbSet<IdentitySession>` to your `DbContext` class if it implements `IIdentityDbContext` interface.
62+
63+
```csharp
64+
public class YourDbContext : AbpDbContext<YourDbContext>, IIdentityDbContext
65+
{
66+
public DbSet<IdentitySession> Sessions { get; set; }
67+
}
68+
```
69+
70+
You should also create a new migration and apply it to your database.
6171

6272
## Upgraded NuGet Dependencies
6373

64-
You can see the following list of NuGet libraries that have been upgraded with this release, if you are using one of these packages explicitly, you may consider upgrading them in your solution:
74+
You can see the following list of NuGet libraries that have been upgraded with this release, **if you are using one of these packages explicitly**, you may consider upgrading them in your solution, especially **Microsoft.IdentityModel.*** packages:
6575

6676
| Package | Old Version | New Version |
6777
| ---------------------------------------------------------- | ----------- | ----------- |

0 commit comments

Comments
 (0)