ForgeFusion.Entities.Core.Account 1.1.2-beta

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

ForgeFusion Accounts Library

Overview

The ForgeFusion.Entities.Core.Account library provides the foundational models and logic for user, tenant, and account management within the ForgeFusion ecosystem. It is a core part of the Accounts layer and is designed to support secure, multi-tenant, and extensible identity management.


✨ Features

  • Tenant and User Models: Core entities for tenants, users, roles, and account configuration.
  • Multi-Tenancy Support: Models and logic for supporting both shared and dedicated tenant databases.
  • Role and Permission Management: Support for user roles, permissions, and access control.
  • Integration with Products, Traders, and Storage: Direct references to product, trader, and storage entities for seamless business logic integration.
  • Extensible Base Types: All account entities inherit from common base types, supporting features like soft deletion, auditing, and multi-tenancy.
  • Serialization and Data Annotations: Uses attributes for JSON serialization and data validation, ensuring robust API and data layer integration.

Key Entities

  • Tenant: Represents a tenant (organization or customer) in the system.
  • User: Represents a user account, with support for roles and permissions.
  • Role: Represents a user role for access control.
  • TenantModel: Extended model for tenant-specific logic and relationships.

Example Relationships

  • A Tenant can have multiple Users and AppLicenses.
  • Users can be assigned to roles and have permissions scoped to tenants.
  • Tenants can be linked to dedicated or shared databases for multi-tenancy.

Integration

  • Depends on:
    • ForgeFusion.Core.Data.Common (base models, interfaces)
    • Shared.Common (shared utilities)
  • Used by:
    • Storage, Products, Traders, Financials, and other domain libraries for account and identity logic.

Installation

Install via NuGet: dotnet add package ForgeFusion.Entities.Core.Account

Guidance for Contributors

  • Add new account, tenant, or user models by extending the base account entities.
  • Use data annotations and JSON attributes for all new models.
  • Integrate with products, traders, and storage for end-to-end business scenarios.

Example Usage

var tenant = new TenantModel {
    Name = "Acme Corp",
    LicenseType = LicenseType.Enterprise,
    AppLicenses = new List<TenantAppLicenseModel> { /* ... */ }
};

For more details, see the ForgeFusion documentation or explore the source code for entity definitions and account logic.

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 (4)

Showing the top 4 NuGet packages that depend on ForgeFusion.Entities.Core.Account:

Package Downloads
ForgeFusion.Core.Data.Extensions

Provides a robust and secure data abstraction layer for .NET applications. Part of the ForgeFusion Community app framework.

ForgeFusion.Core.Data.Entities.Traders

Provides a robust and secure data abstraction layer for .NET applications. Part of the ForgeFusion Community app framework.

ForgeFusion.Core.Data.Products

Provides a robust and secure data abstraction layer for .NET applications. Part of the ForgeFusion Community app framework.

ForgeFusion.Core.Data.Transactions

Provides a robust and secure data abstraction layer for .NET applications. Part of the ForgeFusion Community app framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.2-beta 145 6/29/2025
1.1.1-beta 124 6/29/2025
1.1.0-beta 244 4/21/2025