You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
676 B
21 lines
676 B
2 years ago
|
using Easy.Extensions;
|
||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||
|
|
||
|
namespace Easy.AuthorityManagement.Clean.Domain.EntitiesConfiguration;
|
||
|
|
||
|
public class IdentityRoleConfig : IEntityTypeConfiguration<IdentityRole>
|
||
|
{
|
||
|
public void Configure(EntityTypeBuilder<IdentityRole> 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");
|
||
|
}
|
||
|
}
|