Sencilla.Component.Security.Mssql 10.0.37

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

Sencilla.Component.Security.Mssql

SQL Server schema (.sql source) for the Sencilla Security component.

Owns the RBAC objects in the [sec] schema:

  • sec.Role — named roles (identity starts at 100)
  • sec.Action — named actions (Read, Write, Delete, …)
  • sec.Area — named areas / resource groups
  • sec.Matrix — permission rules linking a role, resource, and action (with optional constraint expression)
  • sec.UserRole — assignment of roles to users (FK to sec.User)

Depends on [[Sencilla.Component.Users.Mssql]] — sec.UserRole.UserId references sec.User.Id, so the Users package must be compiled into the same model.

How it works

This package ships schema source, not a dacpac. When referenced, its build/*.props is auto-imported and compiles the sql/ source into the consuming project's own model. So all sec.* RBAC objects land physically in the consumer's dacpac — self-contained: deploys with no IncludeCompositeObjects flag and no co-located dacpacs.

Consume

<PackageReference Include="Sencilla.Component.Users.Mssql"   Version="10.0.*" />
<PackageReference Include="Sencilla.Component.Security.Mssql" Version="10.0.*" />

Deploy normally:

sqlpackage /Action:Publish /SourceFile:App.dacpac ...

Reference data (seed)

Role, Action, and Area seed rows ship as package content under seed/ (not compiled into the model). The package auto-defines the SQLCMD variable $(Sencilla_Component_Security) pointing at that seed folder. Run it from your post-deployment script:

:r $(Sencilla_Component_Security)/ApplyData.sql

The seed scripts are idempotent and inline at build time, so they run as part of the consumer's normal post-deployment.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.37 47 6/6/2026
10.0.36 49 6/6/2026
10.0.35 49 6/5/2026
10.0.34 40 6/5/2026
10.0.32 39 6/4/2026
10.0.31 41 6/4/2026
10.0.30 42 6/4/2026
10.0.29 36 6/4/2026
10.0.28 47 6/3/2026
10.0.27 53 6/3/2026
10.0.26 46 6/2/2026