Files
mixtape/zero.Core/Entities/Preview.cs
T
2020-11-14 12:34:26 +01:00

29 lines
572 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, IZeroDbConventions
{
/// <summary>
/// Id of the original entity
/// </summary>
string OriginalId { get; set; }
/// <summary>
/// Contains the entity content
/// </summary>
IZeroEntity Content { get; set; }
}
}