45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using AyCode.Core.Serializers.Attributes;
|
|
using AyCode.Core.Serializers.Toons;
|
|
|
|
namespace Nop.Core.Domain.Common;
|
|
|
|
/// <summary>
|
|
/// Represents a generic attribute
|
|
/// </summary>
|
|
[AcBinarySerializable(false, true, false, true, false, 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
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the entity identifier
|
|
/// </summary>
|
|
///
|
|
[ToonDescription(Constraints = "polymorphic-fk(KeyGroup)")]
|
|
public int EntityId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the key group
|
|
/// </summary>
|
|
public string KeyGroup { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the key
|
|
/// </summary>
|
|
public string Key { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the value
|
|
/// </summary>
|
|
[ToonDescription(Purpose = "Raw string representation of the Key's value")]
|
|
public string Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the store identifier
|
|
/// </summary>
|
|
public int StoreId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the created or updated date
|
|
/// </summary>
|
|
public DateTime? CreatedOrUpdatedDateUTC { get; set; }
|
|
} |