BccCode.Privacy.Postgres 12.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package BccCode.Privacy.Postgres --version 12.0.0
                    
NuGet\Install-Package BccCode.Privacy.Postgres -Version 12.0.0
                    
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="BccCode.Privacy.Postgres" Version="12.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BccCode.Privacy.Postgres" Version="12.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BccCode.Privacy.Postgres" />
                    
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 BccCode.Privacy.Postgres --version 12.0.0
                    
#r "nuget: BccCode.Privacy.Postgres, 12.0.0"
                    
#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.
#:package BccCode.Privacy.Postgres@12.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BccCode.Privacy.Postgres&version=12.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BccCode.Privacy.Postgres&version=12.0.0
                    
Install as a Cake Tool

BccCode.Privacy.Postgres

The PostgreSQL layer of BCC Privacy, generated from the data classes and processes of BccCode.Privacy:

  • On each table that holds personal data: allowed_processes (the processes that keep something in the row), person_link (identified or pseudonymised; not on child entities) and last_reduced_at, with check constraints and a comment on every column naming its personal data category, or "data subject", "not personal data" or "key".
  • The catalogue: privacy.process, privacy.personal_data_category_field, privacy.process_personal_data_category and privacy.disclosure_rules. Joining the second and third answers "which processes keep app.application.phone, and until when?". Processing permissions are rules in code: the catalogue holds them, and there are no per-person or per-group permission rows.
  • The package tables: privacy.consents (the one record of each consent: a consent process keeps a person's rows while their row is given, PrivacyConsents.GivenSql), privacy.restrictions, privacy.pseudonym, and the bookkeeping tables privacy.tombstone, privacy.job_run, privacy.read_audit and privacy.outbox; and privacy.group_members, the one cache of the members of Core API groups (group_uid and process_id required; one row per group_uid, person_uid, org_uid, process_id, group_name, unique index group_members_process_key): a member covers only the process whose adoption names that Core group. A group of the application's own rows (DataSubjects<TRow>) is a rule over its table and has no rows there. The script drops the permission tables of earlier versions (privacy.legal_bases, legal_basis_data_sources, group_legal_bases, group_legal_basis_groups, release_record) and the view privacy.effective_data_sources, and deletes the rows of earlier versions, which name no process (the Core group loader loads the copies again at start-up); it then makes group_uid and process_id required and drops the check group_members_group_named and the indexes group_members_group and group_members_key.
  • Reads across orgs: visible.<table> and visible.<table>_rows(reader_orgs, reader_process): the reader's own rows its process keeps, and other orgs' rows the disclosure rules grant it.

The EF Core adapter writes all of this into a normal migration. Other migrators run the script:

var data = PersonalDataModel.FromAssemblies(typeof(ApplicationData).Assembly);
var processes = ProcessModel.FromAssemblies(data, typeof(ParticipationProcess).Assembly);
var sql = PrivacySql.Script(processes, new ConventionStorageMap("app", jsonMembers: "WorkPart"));

The script is idempotent and can run on every deploy, after the application's own tables exist. IStorageMap says where each field is stored; ConventionStorageMap uses snake-case names and treats the listed members as JSON columns.

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)

Showing the top 1 NuGet packages that depend on BccCode.Privacy.Postgres:

Package Downloads
BccCode.Privacy.EntityFrameworkCore

Purpose-bound access to personal data in EF Core and PostgreSQL: the privacy layer in an ordinary EF model, filters by organisation and process, the derivation of what each process keeps on save, hiding of fields a process does not keep, sharing between organisations, consents and the read audit.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
14.6.8 43 11/26/2026
14.6.7 42 11/26/2026
14.6.6 49 11/26/2026
14.6.5 51 11/26/2026
14.6.4 47 11/26/2026
14.6.3 49 11/26/2026
14.6.2 47 11/26/2026
14.6.1 55 11/26/2026
14.6.0 44 11/26/2026
14.5.0 47 11/26/2026
14.4.0 49 11/26/2026
14.3.0 39 11/26/2026
14.2.0 45 11/26/2026
14.1.1 47 11/26/2026
14.1.0 41 11/26/2026
14.0.1 42 11/26/2026
14.0.0 44 11/26/2026
13.0.0 49 11/26/2026
12.0.1 44 11/26/2026
12.0.0 48 11/26/2026
Loading failed