MasLazu.AspNet.Authorization.Page.Domain 1.0.0-preview.1

This is a prerelease version of MasLazu.AspNet.Authorization.Page.Domain.
dotnet add package MasLazu.AspNet.Authorization.Page.Domain --version 1.0.0-preview.1
                    
NuGet\Install-Package MasLazu.AspNet.Authorization.Page.Domain -Version 1.0.0-preview.1
                    
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="MasLazu.AspNet.Authorization.Page.Domain" Version="1.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MasLazu.AspNet.Authorization.Page.Domain" Version="1.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="MasLazu.AspNet.Authorization.Page.Domain" />
                    
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 MasLazu.AspNet.Authorization.Page.Domain --version 1.0.0-preview.1
                    
#r "nuget: MasLazu.AspNet.Authorization.Page.Domain, 1.0.0-preview.1"
                    
#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 MasLazu.AspNet.Authorization.Page.Domain@1.0.0-preview.1
                    
#: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=MasLazu.AspNet.Authorization.Page.Domain&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MasLazu.AspNet.Authorization.Page.Domain&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Tool

MasLazu.AspNet.Authorization.Page.Domain

This project contains the domain entities for the ASP.NET Authorization Page system. It defines the core business objects and their relationships that represent the domain model.

Overview

The domain layer establishes the fundamental entities that model the page authorization system, including their properties and relationships. These entities form the basis for data persistence and business logic.

Entities

Page

Represents a page in the authorization system.

Properties:

  • Id (inherited from BaseEntity)
  • ParentId: Optional GUID referencing the parent page for hierarchical structure
  • PageGroupId: Optional GUID referencing the page group
  • Code: Unique code identifier for the page
  • Name: Display name of the page
  • Path: URL path or route for the page
  • CreatedAt, UpdatedAt (inherited from BaseEntity)

Relationships:

  • Parent: Navigation to parent Page (self-referencing)
  • PageGroup: Navigation to associated PageGroup
  • PagePermissions: Collection of PagePermission entities

PageGroup

Represents a group of pages for organizational purposes.

Properties:

  • Id (inherited from BaseEntity)
  • Code: Unique code identifier for the group
  • Name: Display name of the group
  • Icon: Optional icon representation
  • CreatedAt, UpdatedAt (inherited from BaseEntity)

Relationships:

  • Pages: Collection of Page entities belonging to this group

PagePermission

Represents the association between a page and a permission.

Properties:

  • Id (inherited from BaseEntity)
  • PageId: GUID referencing the associated page
  • PermissionId: GUID referencing the associated permission
  • CreatedAt, UpdatedAt (inherited from BaseEntity)

Relationships:

  • Page: Navigation to the associated Page entity

Entity Relationships

PageGroup 1:N Pages
Page 1:N PagePermissions
Page N:1 Page (self-referencing for hierarchy)

Dependencies

  • MasLazu.AspNet.Framework.Domain: Provides the BaseEntity class with common properties like Id, CreatedAt, and UpdatedAt

Target Framework

  • .NET 9.0
  • Nullable reference types enabled
  • Implicit usings enabled

Usage

These domain entities are used by:

  • The EF Core project for database mapping and persistence
  • The main application project for business logic implementation
  • Other layers that need to work with the core domain objects

The entities define the structure and relationships that govern how pages, groups, and permissions interact within the authorization system.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (2)

Showing the top 2 NuGet packages that depend on MasLazu.AspNet.Authorization.Page.Domain:

Package Downloads
MasLazu.AspNet.Authorization.Page.EfCore

Package Description

MasLazu.AspNet.Authorization.Page

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.1 196 9/25/2025