命令模式和消息幂等去重
This commit is contained in:
1 parent
2201f36422
commit
780c489e02
10 files changed
+208
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) HelloShop Corporation. All rights reserved.
|
||||
// See the license file in the project root for more information.
|
||||
|
||||
using HelloShop.OrderingService.Entities.Idempotency;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace HelloShop.OrderingService.Infrastructure.EntityConfigurations.Idempotency
|
||||
{
|
||||
public class ClientRequestEntityTypeConfiguration : IEntityTypeConfiguration<ClientRequest>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<ClientRequest> builder)
|
||||
{
|
||||
builder.ToTable("ClientRequests");
|
||||
|
||||
builder.HasKey(t => t.Id);
|
||||
|
||||
builder.Property(t => t.Name).HasMaxLength(64);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user