Fdw.Services.Multitenancy.Database 1.7.0

dotnet add package Fdw.Services.Multitenancy.Database --version 1.7.0
                    
NuGet\Install-Package Fdw.Services.Multitenancy.Database -Version 1.7.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="Fdw.Services.Multitenancy.Database" Version="1.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fdw.Services.Multitenancy.Database" Version="1.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Fdw.Services.Multitenancy.Database" />
                    
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 Fdw.Services.Multitenancy.Database --version 1.7.0
                    
#r "nuget: Fdw.Services.Multitenancy.Database, 1.7.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 Fdw.Services.Multitenancy.Database@1.7.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=Fdw.Services.Multitenancy.Database&version=1.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Fdw.Services.Multitenancy.Database&version=1.7.0
                    
Install as a Cake Tool

Fdw.Services.Multitenancy.Database

The database core of row-level security. A package of database files and MSBuild files only; it ships no assembly and depends on no code.

What it holds

  • the security and tenant schemas,
  • the tables the tenancy functions read: security.VisibilityGroup, tenant.TenantOrgAccess and tenant.UserTenantsConfiguration (who belongs to which tenant and which visibility group a row belongs to). None has a foreign key or a policy of its own,
  • security.fn_TenantFilter and security.fn_TenantWriteFilter, the filter and block predicates that nearly every package's row-level policy calls.

Why it is its own package

Every package that owns tables with a policy depends on the two functions, and the functions read the three tables. If those tables stayed in the packages whose code declares them (Fdw.Services.Users declares UserTenantsConfiguration, Fdw.Services.Authorization quotes TenantOrgAccess), the core would depend on those code packages, and so would everything else. scripts/ownership in the databases repo records the placement (tenant.UserTenantsConfiguration is a deliberate move) and checks that no package depends on itself.

Using it

A package that owns tables with a policy references this package. A host's database project then builds these files into its dacpac through the mechanism of Fdw.Schema.Database.Build. The same files are still in databases/ConfigurationDb until FDW-6923.


Part of FractalDataWorks. Licensed under Apache-2.0.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Fdw.Services.Multitenancy.Database:

Package Downloads
Fdw.Data.Abstractions

Development tools and utilities for the Fdw ecosystem.

Fdw.Schema.Abstractions

Development tools and utilities for the Fdw ecosystem.

Fdw.Services.Notifications

Development tools and utilities for the Fdw ecosystem.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.0 628 12/1/2026