mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
13 lines
385 B
C#
13 lines
385 B
C#
using Govor.Core.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace Govor.Data.Configurations;
|
|
|
|
public class GroupMembershipConfiguration : IEntityTypeConfiguration<GroupMembership>
|
|
{
|
|
public void Configure(EntityTypeBuilder<GroupMembership> builder)
|
|
{
|
|
builder.HasKey(m => new { m.GroupId, m.UserId });
|
|
}
|
|
} |