using Demo.Features;
namespace Demo.Models;
///
/// 元数据
///
public interface IMetadata
{
string Name { get; }
Guid SignId { get; }
///
/// 属性
///
MetadataPropertySet Properties { get; }
public IMetadata SetProperty(string name, object? value)
{
Properties.SetValue(name, value);
return this;
}
public TValue? GetProperty(string name)
{
return Properties.GetValue(name).Cast();
}
}