ForgeFusion.Core.Data.Products
1.1.1-beta
dotnet add package ForgeFusion.Core.Data.Products --version 1.1.1-beta
NuGet\Install-Package ForgeFusion.Core.Data.Products -Version 1.1.1-beta
<PackageReference Include="ForgeFusion.Core.Data.Products" Version="1.1.1-beta" />
<PackageVersion Include="ForgeFusion.Core.Data.Products" Version="1.1.1-beta" />
<PackageReference Include="ForgeFusion.Core.Data.Products" />
paket add ForgeFusion.Core.Data.Products --version 1.1.1-beta
#r "nuget: ForgeFusion.Core.Data.Products, 1.1.1-beta"
#:package ForgeFusion.Core.Data.Products@1.1.1-beta
#addin nuget:?package=ForgeFusion.Core.Data.Products&version=1.1.1-beta&prerelease
#tool nuget:?package=ForgeFusion.Core.Data.Products&version=1.1.1-beta&prerelease
ForgeFusion Products Library
Overview
The ForgeFusion.Core.Data.Products library provides a comprehensive set of models and logic for managing product catalogs, variants, offers, and discounts within the ForgeFusion ecosystem. It is a core part of the Datastores layer and is designed to support complex product management, pricing, and promotional scenarios.
✨ Features
- Product Catalog Models: Core entities for products, product variants, and catalogues.
- Offer and Discount Management: Models for offers, discounts, and pricing strategies.
- Variant Support: Support for product variants, themes, and attributes.
- Integration with Traders and Accounts: Direct references to trader entities (e.g., merchants, suppliers) and account/tenant entities for seamless business logic integration.
- Extensible Base Types: All product 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
- Product: Represents a core product in the catalog.
- ProductVariant: Represents a specific variant of a product (e.g., size, color).
- Catalogue: Represents a collection of products offered by a merchant or supplier.
- BaseOfferModel: Represents an offer or discount applied to products or catalogues.
Example Relationships
- A
Product
can have multipleProductVariants
. - A
Catalogue
can contain multipleProducts
and be associated with a merchant or supplier. - Offers can be applied to products, variants, or entire catalogues.
Integration
- Depends on:
ForgeFusion.Core.Data.Common
(base models, interfaces)ForgeFusion.Entities.Core.Account
(tenant, user references)ForgeFusion.Core.Data.Entities.Traders
(merchant, supplier references)
- Used by:
- Inventory, Financials, Storage, and other domain libraries for product-related logic.
Installation
Install via NuGet: dotnet add package ForgeFusion.Core.Data.Products
Guidance for Contributors
- Add new product types, variants, or offer models by extending the base product entities.
- Use data annotations and JSON attributes for all new models.
- Integrate with traders and accounts for end-to-end business scenarios.
Example Usage
var product = new Product {
Name = "Premium Coffee",
Variants = new List<ProductVariant> { /* ... */ }
};
For more details, see the ForgeFusion documentation or explore the source code for entity definitions and relationships.
Product | Versions 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. |
-
net9.0
- ForgeFusion.Core.Data.Common (>= 1.1.3-beta)
- ForgeFusion.Entities.Core.Account (>= 1.1.2-beta)
- Shared.Common (>= 1.3.6)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ForgeFusion.Core.Data.Products:
Package | Downloads |
---|---|
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.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 | 150 | 6/29/2025 |
1.1.0-beta | 150 | 4/26/2025 |