Files
Mccn/src/Modules/Hello/Mccn.Modules.Hello.Infrastructure/Database/Configurations/InboxMessageConsumerConfiguration.cs
2026-03-15 17:11:31 +01:00

15 lines
514 B
C#

using Mccn.Common.Infrastructure.Inbox;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Mccn.Modules.Hello.Infrastructure.Database.Configurations;
internal sealed class InboxMessageConsumerConfiguration : IEntityTypeConfiguration<InboxMessageConsumer>
{
public void Configure(EntityTypeBuilder<InboxMessageConsumer> builder)
{
builder.ToTable("inbox_message_consumers");
builder.HasKey(c => new { c.InboxMessageId, c.Name });
}
}