Files
mixtape/zero.Core/Entities/Preview.cs
T
2020-10-05 15:10:40 +02:00

29 lines
589 B
C#

using zero.Core.Attributes;
namespace zero.Core.Entities
{
public class Preview : ZeroEntity, IPreview
{
/// <inheritdoc />
public string OriginalId { get; set; }
/// <inheritdoc />
public IZeroEntity Content { get; set; }
}
[Collection("Previews")]
public interface IPreview : IZeroEntity, IAppAwareEntity, IZeroDbConventions
{
/// <summary>
/// Id of the original entity
/// </summary>
string OriginalId { get; set; }
/// <summary>
/// Contains the entity content
/// </summary>
IZeroEntity Content { get; set; }
}
}