BccCode.Privacy.ChangeHistory
0.10.0
See the version list below for details.
dotnet add package BccCode.Privacy.ChangeHistory --version 0.10.0
NuGet\Install-Package BccCode.Privacy.ChangeHistory -Version 0.10.0
<PackageReference Include="BccCode.Privacy.ChangeHistory" Version="0.10.0" />
<PackageVersion Include="BccCode.Privacy.ChangeHistory" Version="0.10.0" />
<PackageReference Include="BccCode.Privacy.ChangeHistory" />
paket add BccCode.Privacy.ChangeHistory --version 0.10.0
#r "nuget: BccCode.Privacy.ChangeHistory, 0.10.0"
#:package BccCode.Privacy.ChangeHistory@0.10.0
#addin nuget:?package=BccCode.Privacy.ChangeHistory&version=0.10.0
#tool nuget:?package=BccCode.Privacy.ChangeHistory&version=0.10.0
BccCode.Privacy.ChangeHistory
Connects BccCode.Privacy.EntityFrameworkCore and BccCode.ChangeHistory on one model, so events, links, changes and
history versions are read per organisation, like the current rows.
services.AddPrivacyChangeHistory(); // ChangeHistory's reader scope = the acting organisation
protected override void ConfigureEntities(ModelBuilder b)
{
b.UsePrivacy();
// ... entities, Personal(), Item() ...
b.UsePrivacyChangeHistory(); // last
}
UsePrivacyChangeHistory():
FilterEventsByOrganisation(): a reader sees an event, its payload and trace only when all its links belong to the acting organisation. An event that spans organisations, or has a link without an owner, is read only withIgnoreQueryFilters()(maintenance).FilterHistoryByCurrentRow(): history versions are read only while the current row passes the privacy filter.HasEventOwner(<organisation>)on every personal table.ExcludeFromVersioning()on the package's columns (usable,reader_org): a basis change makes no history version.
PrivacyChangeHistory.Check(context) refuses, at start-up, a ChangeHistory context with personal tables whose model
was not set up this way. Hosting calls it.
In a mixed or ownerless event, Changes() and ChangesFor() keep the change to the reader's own row, with the
event's name, actor and reason left empty.
Versions tested
BccCode.ChangeHistory 0.4.64 from nuget.org (bcc-platform-sdks main, the same code as change-history/integration-0.4
at af9d6a5). Versions 0.4.43 to 0.4.63 are partial releases; do not use them.
| Product | Versions 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. |
-
net10.0
- BccCode.ChangeHistory (>= 0.4.64)
- BccCode.Privacy.EntityFrameworkCore (>= 0.10.0)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.15)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Compliance.Abstractions (>= 10.11.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BccCode.Privacy.ChangeHistory:
| Package | Downloads |
|---|---|
|
BccCode.Privacy.Hosting
One AddPrivacy() for BCC Privacy: the EF Core, ASP.NET Core and Wolverine packages wired together, defaults per environment, the privacy document at /.well-known/bcc-privacy, and the application's processes and data items pushed to the Privacy API at deploy. |
GitHub repositories
This package is not used by any popular GitHub repositories.