Browse Source

Update IdentityServerDbContextModelCreatingExtensions.cs

pull/2542/head
Halil İbrahim Kalkan 6 years ago
parent
commit
4aeb2d747f
  1. 3
      modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/EntityFrameworkCore/IdentityServerDbContextModelCreatingExtensions.cs

3
modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/EntityFrameworkCore/IdentityServerDbContextModelCreatingExtensions.cs

@ -246,6 +246,7 @@ namespace Volo.Abp.IdentityServer.EntityFrameworkCore
apiSecret.HasKey(x => new { x.ApiResourceId, x.Type, x.Value });
apiSecret.Property(x => x.Type).HasMaxLength(SecretConsts.TypeMaxLength).IsRequired();
apiSecret.Property(x => x.Description).HasMaxLength(SecretConsts.DescriptionMaxLength);
if (options.DatabaseProvider == EfCoreDatabaseProvider.MySql)
{
@ -255,8 +256,6 @@ namespace Volo.Abp.IdentityServer.EntityFrameworkCore
{
apiSecret.Property(x => x.Value).HasMaxLength(SecretConsts.ValueMaxLength).IsRequired();
}
apiSecret.Property(x => x.Description).HasMaxLength(SecretConsts.DescriptionMaxLength);
});
builder.Entity<ApiResourceClaim>(apiClaim =>

Loading…
Cancel
Save