|
|
|
@ -1,12 +1,8 @@
|
|
|
|
|
using Connected.Annotations;
|
|
|
|
|
using Connected.Entities.Consistency;
|
|
|
|
|
using Connected.Entities;
|
|
|
|
|
|
|
|
|
|
namespace Connected.ServiceModel.Data;
|
|
|
|
|
|
|
|
|
|
public abstract record TableEntity<TPrimaryKey, TPartitionKey> : ConsistentEntity<TPrimaryKey>, ITableEntity<TPrimaryKey, TPartitionKey>
|
|
|
|
|
public abstract record TableEntity<TPrimaryKey, TPartitionKey> : Entity<TPrimaryKey>, ITableEntity<TPrimaryKey>
|
|
|
|
|
where TPrimaryKey : notnull
|
|
|
|
|
where TPartitionKey : notnull
|
|
|
|
|
{
|
|
|
|
|
[Ordinal(-1)]
|
|
|
|
|
public TPartitionKey PartitionKey { get; init; } = default!;
|
|
|
|
|
}
|
|
|
|
|