You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Connected.Annotations;
|
|
|
|
|
using Connected.Entities.Annotations;
|
|
|
|
|
using Connected.Entities.Consistency;
|
|
|
|
|
|
|
|
|
|
namespace Connected.ServiceModel.Search;
|
|
|
|
|
public record SearchEntity<TPrimaryKey> : ConsistentEntity<TPrimaryKey>, ISearchEntity<TPrimaryKey>
|
|
|
|
|
where TPrimaryKey : notnull
|
|
|
|
|
{
|
|
|
|
|
[Ordinal(0)]
|
|
|
|
|
public int Author { get; init; }
|
|
|
|
|
|
|
|
|
|
[Ordinal(1)]
|
|
|
|
|
public DateTimeOffset? Created { get; init; }
|
|
|
|
|
|
|
|
|
|
[Ordinal(2)]
|
|
|
|
|
public int Language { get; init; }
|
|
|
|
|
|
|
|
|
|
[Ordinal(3), Nullable]
|
|
|
|
|
public string? Tags { get; init; }
|
|
|
|
|
}
|