ForgeFusion.Core.Data.Entities.Traders 1.1.1-beta

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

ForgeFusion Traders Library

Overview

The ForgeFusion.Core.Data.Entities.Traders library provides a comprehensive set of models and relationships for representing and managing trader entities within the ForgeFusion ecosystem. It is a key part of the Datastores layer and is designed to support complex trading, supply chain, and business network scenarios.


✨ Features

  • Trader Entity Abstractions: Core models for buyers, sellers, merchants, suppliers, outlets, and clusters.
  • Relationship Modeling: Rich navigation properties for representing real-world relationships between traders, such as:
    • Merchants and their outlets
    • Suppliers and their catalogues
    • Clusters of merchants and suppliers
  • Extensible Base Types: All trader entities inherit from common base types, supporting features like soft deletion, auditing, and multi-tenancy.
  • Integration with Products and Accounts: Direct references to product catalogues and account/tenant entities for seamless business logic integration.
  • Support for Business Networks: Models for clusters and associations, enabling advanced supply chain and distribution scenarios.
  • Serialization and Data Annotations: Uses attributes for JSON serialization and data validation, ensuring robust API and data layer integration.

Key Entities

  • Merchant: Represents a seller or business entity, with support for outlets, catalogues, and cluster memberships.
  • Supplier: Represents a supplier in the network, with catalogues and cluster relationships.
  • Outlet: Represents a physical or logical outlet/store for a merchant.
  • Cluster: Represents a group or association of merchants or suppliers for business collaboration.
  • Buyer: Represents a customer or purchasing entity in the system.

Example Relationships

  • A Merchant can have multiple Outlets and belong to multiple Clusters.
  • A Supplier can have multiple Catalogues and belong to multiple Clusters.
  • Clusters can group merchants and suppliers for business logic such as promotions, distribution, or reporting.

Integration

  • Depends on:
    • ForgeFusion.Core.Data.Common (base models, interfaces)
    • ForgeFusion.Core.Data.Products (catalogues, product references)
    • ForgeFusion.Entities.Core.Account (tenant, user references)
  • Used by:
    • Products, Financials, Storage, and other domain libraries for trader-related logic.

Installation

Install via NuGet: dotnet add package ForgeFusion.Core.Data.Entities.Traders

Guidance for Contributors

  • Add new trader types or relationships by extending the base trader entities.
  • Use data annotations and JSON attributes for all new models.
  • Integrate with products and accounts for end-to-end business scenarios.

Example Usage

var merchant = new Merchant {
    IsCreditCustomer = true,
    Outlets = new List<Outlet> { /* ... */ },
    Catalogues = new List<Catalogue> { /* ... */ }
};

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

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

Showing the top 1 NuGet packages that depend on ForgeFusion.Core.Data.Entities.Traders:

Package Downloads
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.1-beta 146 6/29/2025
1.1.0-beta 160 4/26/2025