using Easy.Extensions; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Easy.AuthorityManagement.Clean.Domain.EntitiesConfiguration; public class IdentityRoleConfig : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ConfigureByConvention(); builder.HasKey(e => e.Id).HasName("PRIMARY"); builder.Property(e => e.Id).HasComment("主键"); builder.Property(e => e.CreationTime).HasComment("创建时间"); builder.Property(e => e.RoleName).HasComment("角色名称"); builder.Property(e => e.TenantId).HasComment("租户Id"); } }