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.
18 lines
652 B
18 lines
652 B
using Connected.Annotations;
|
|
using Connected.Data;
|
|
using Connected.Entities.Annotations;
|
|
using Connected.Entities.Consistency;
|
|
|
|
namespace Connected.Entities;
|
|
/// <inheritdoc cref="IEntityContainer{TPrimaryKey}"/>>
|
|
public abstract record EntityContainer<TPrimaryKey> : ConsistentEntity<TPrimaryKey>, IEntityContainer<TPrimaryKey>
|
|
where TPrimaryKey : notnull
|
|
{
|
|
/// <inheritdoc cref="IEntityContainer{TPrimaryKey}.Entity"/>>
|
|
[Ordinal(-10), Length(128)]
|
|
public string Entity { get; init; } = default!;
|
|
/// <inheritdoc cref="IEntityContainer{TPrimaryKey}.EntityId"/>>
|
|
[Ordinal(-9), Length(128)]
|
|
public string EntityId { get; init; } = default!;
|
|
}
|