15 lines
514 B
C#
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 });
|
|
}
|
|
}
|