From 474cb9975479072ab48496c1e4f600b8fa6e48d6 Mon Sep 17 00:00:00 2001 From: Loretta Date: Mon, 11 May 2026 20:25:42 +0200 Subject: [PATCH] [LOADED_DOCS: 3 files, no new loads] Update AcBinarySerializable attribute to 5 params Updated AcBinarySerializable to use a five-parameter signature across all relevant entities and DTOs. Adjusted CONVENTIONS.md to document the new attribute usage. Refactored MiscSignalRApiPlugin constructor to a single-line parameter list for clarity. --- Mango.Nop.Core/Dtos/CustomerDto.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/Customer.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/CustomerRole.cs | 2 +- .../NopDependencies/Catalogs/DiscountProductMapping.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/GenericAttribute.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/Order.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/OrderItem.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/OrderNote.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/Product.cs | 2 +- Mango.Nop.Core/NopDependencies/Catalogs/StockQuantityHistory.cs | 2 +- docs/CONVENTIONS.md | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Mango.Nop.Core/Dtos/CustomerDto.cs b/Mango.Nop.Core/Dtos/CustomerDto.cs index 8f3b9e6..cb3ea4b 100644 --- a/Mango.Nop.Core/Dtos/CustomerDto.cs +++ b/Mango.Nop.Core/Dtos/CustomerDto.cs @@ -6,7 +6,7 @@ using Nop.Core.Domain.Customers; namespace Mango.Nop.Core.Dtos; -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [LinqToDB.Mapping.Table(Name = nameof(Customer))] [System.ComponentModel.DataAnnotations.Schema.Table(nameof(Customer))] [ToonDescription($"Data transfer object for {nameof(Customer)}", TypeRelation = ToonTypeRelation.DtoOf, RelatedTypes = [typeof(Customer)])] diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/Customer.cs b/Mango.Nop.Core/NopDependencies/Catalogs/Customer.cs index 4acf568..ea5e569 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/Customer.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/Customer.cs @@ -8,7 +8,7 @@ namespace Nop.Core.Domain.Customers; /// /// Represents a customer /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [ToonDescription("NopCommerce customer entity")] public partial class Customer : BaseEntity, ISoftDeletedEntity { diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/CustomerRole.cs b/Mango.Nop.Core/NopDependencies/Catalogs/CustomerRole.cs index 38dd8f5..2340f65 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/CustomerRole.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/CustomerRole.cs @@ -5,7 +5,7 @@ namespace Nop.Core.Domain.Customers; /// /// Represents a customer role /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] public partial class CustomerRole : BaseEntity { /// diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/DiscountProductMapping.cs b/Mango.Nop.Core/NopDependencies/Catalogs/DiscountProductMapping.cs index ec12f24..0aa0463 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/DiscountProductMapping.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/DiscountProductMapping.cs @@ -6,7 +6,7 @@ namespace Nop.Core.Domain.Discounts; /// Represents a discount-product mapping class /// // SGen incompatible: DiscountMapping.Id is readonly (new int Id { get; }) — generated reader cannot set it (CS0200) -//[AcBinarySerializable(false, true, false, true)] +//[AcBinarySerializable(false, true, false, true, false)] public partial class DiscountProductMapping : DiscountMapping { /// diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/GenericAttribute.cs b/Mango.Nop.Core/NopDependencies/Catalogs/GenericAttribute.cs index b4f44fc..2f232e7 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/GenericAttribute.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/GenericAttribute.cs @@ -6,7 +6,7 @@ namespace Nop.Core.Domain.Common; /// /// Represents a generic attribute /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [ToonDescription("NopCommerce generic attribute for key-value storage", Purpose = "A flexible key-value store used to extend entities with custom business logic data without changing the database schema")] public partial class GenericAttribute : BaseEntity { diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs b/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs index 5e6741b..e9d5c24 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs @@ -10,7 +10,7 @@ namespace Nop.Core.Domain.Orders; /// /// Represents an order /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [ToonDescription("NopCommerce order entity with payment and shipping")] public partial class Order : BaseEntity, ISoftDeletedEntity { diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/OrderItem.cs b/Mango.Nop.Core/NopDependencies/Catalogs/OrderItem.cs index 4a8a835..2568822 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/OrderItem.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/OrderItem.cs @@ -7,7 +7,7 @@ using AyCode.Core.Serializers.Toons; /// /// Represents an order item /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [ToonDescription("NopCommerce order item entity")] public partial class OrderItem : BaseEntity { diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/OrderNote.cs b/Mango.Nop.Core/NopDependencies/Catalogs/OrderNote.cs index ed247c5..8999afb 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/OrderNote.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/OrderNote.cs @@ -6,7 +6,7 @@ namespace Nop.Core.Domain.Orders; /// /// Represents an order note /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [ToonDescription("NopCommerce order note entity")] public partial class OrderNote : BaseEntity { diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/Product.cs b/Mango.Nop.Core/NopDependencies/Catalogs/Product.cs index 575b9e6..51e1e4e 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/Product.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/Product.cs @@ -12,7 +12,7 @@ namespace Nop.Core.Domain.Catalog; /// /// Represents a product /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [ToonDescription("Core nopCommerce product entity with catalog, pricing, and inventory management")] public partial class Product : BaseEntity, ILocalizedEntity, ISlugSupported, IAclSupported, IStoreMappingSupported, IDiscountSupported, ISoftDeletedEntity { diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/StockQuantityHistory.cs b/Mango.Nop.Core/NopDependencies/Catalogs/StockQuantityHistory.cs index af7955e..4334f99 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/StockQuantityHistory.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/StockQuantityHistory.cs @@ -20,7 +20,7 @@ public interface IMgStockQuantityHistory /// /// Represents a stock quantity change entry /// -[AcBinarySerializable(false, true, false, true)] +[AcBinarySerializable(false, true, false, true, false)] [Table(Name = nameof(StockQuantityHistory))] [ToonDescription("NopCommerce stock movement log", Purpose = "Audit trail for physical and logical stock movements")] public partial class StockQuantityHistory : BaseEntity, IMgStockQuantityHistory diff --git a/docs/CONVENTIONS.md b/docs/CONVENTIONS.md index 527bf5a..5b6b8fb 100644 --- a/docs/CONVENTIONS.md +++ b/docs/CONVENTIONS.md @@ -60,7 +60,7 @@ ### Serialization Attributes - `[ToonDescription(...)]` — AyCode metadata for AI/doc tooling. `Purpose`, `BusinessRule`, `TypeRelation`, `RelatedTypes` properties. -- `[AcBinarySerializable(false, true, false, true)]` — AcBinarySerializer config (see `AyCode.Core/AyCode.Core/docs/BINARY/BINARY_FORMAT.md`). Parameters control serialization behavior for AcSignalR transport (see `AyCode.Core/AyCode.Services/docs/SIGNALR/README.md`). +- `[AcBinarySerializable(false, true, false, true, false)]` — AcBinarySerializer config (see `AyCode.Core/AyCode.Core/docs/BINARY/BINARY_FORMAT.md`). Parameters control serialization behavior for AcSignalR transport (see `AyCode.Core/AyCode.Services/docs/SIGNALR/README.md`). - LinqToDB `[Table(Name = "...")]` and `[Association(...)]` — DB mapping. ## Project Boundaries