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.
Connected.Framework/Connected.Entities/EntityContainer.cs

18 lines
652 B

2 years ago
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!;
}