Rebase with github repository
This commit is contained in:
parent
cfb6fa7f37
commit
c8b522e265
@ -0,0 +1,4 @@
|
||||
namespace Connected.ServiceModel.Annotations;
|
||||
public sealed class PartitionKeyAttribute : Attribute
|
||||
{
|
||||
}
|
@ -1,10 +1,8 @@
|
||||
using Connected.Entities.Consistency;
|
||||
using Connected.Entities;
|
||||
|
||||
namespace Connected.ServiceModel.Data;
|
||||
|
||||
public interface ITableEntity<TPrimaryKey, TPartitionKey> : IConsistentEntity<TPrimaryKey>
|
||||
public interface ITableEntity<TPrimaryKey> : IEntity<TPrimaryKey>
|
||||
where TPrimaryKey : notnull
|
||||
where TPartitionKey : notnull
|
||||
{
|
||||
TPartitionKey PartitionKey { get; init; }
|
||||
}
|
||||
|
@ -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!;
|
||||
}
|
||||
|
@ -3,6 +3,8 @@ using Connected.Entities.Annotations;
|
||||
using Connected.Entities.Consistency;
|
||||
|
||||
namespace Connected.ServiceModel.Search;
|
||||
|
||||
[Persistence(Persistence = ColumnPersistence.InMemory)]
|
||||
public record SearchEntity<TPrimaryKey> : ConsistentEntity<TPrimaryKey>, ISearchEntity<TPrimaryKey>
|
||||
where TPrimaryKey : notnull
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user