35 lines
965 B
C#
35 lines
965 B
C#
using Prefab.Domain.Common;
|
|
|
|
namespace Prefab.Data.Entities;
|
|
|
|
/// <summary>
|
|
/// Represents a persisted generic attribute for an entity.
|
|
/// </summary>
|
|
public class GenericAttribute : EntityWithAuditAndStatus<int>
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the owning entity identifier.
|
|
/// </summary>
|
|
public Guid EntityId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the logical group used to partition attributes by entity type.
|
|
/// </summary>
|
|
public string KeyGroup { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the attribute key.
|
|
/// </summary>
|
|
public string Key { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the fully qualified type name of the serialized value.
|
|
/// </summary>
|
|
public string Type { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the serialized attribute value.
|
|
/// </summary>
|
|
public string Value { get; set; } = string.Empty;
|
|
}
|