Init
This commit is contained in:
34
Prefab/Data/Entities/GenericAttribute.cs
Normal file
34
Prefab/Data/Entities/GenericAttribute.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user