2020-09-04 11:50:22 +02:00
|
|
|
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")]
|
2020-11-14 12:34:26 +01:00
|
|
|
public interface IPreview : IZeroEntity, IZeroDbConventions
|
2020-09-04 11:50:22 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id of the original entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
string OriginalId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Contains the entity content
|
|
|
|
|
/// </summary>
|
|
|
|
|
IZeroEntity Content { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|