- ABP Framework version: v7.1.1
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
I am adding ExtraProperties to OpenIddictApplication entity, however, when I retrieve it, it is null always.
My AppService to update the property named "ServiceName" it is working fine.
public async Task<string> UpdateAsync(Guid applicationId, string serviceName)
    {
        var application = await _applicationRepo.GetAsync(x => x.Id == applicationId);
        application.SetServiceName(serviceName);
        await _applicationRepo.UpdateAsync(application);
        return serviceName;
    }
when i fetch in angular
this.applicationService.getList(input).subscribe(res => {
      console.log(res.items);
    })
I got this:
I added this block of code on Domain.Shared project:
private static void ConfigureExtraProperties()    {        
    ObjectExtensionManager.Instance.Modules()
        .ConfigureOpenIddict(openIddict => {                
            openIddict.ConfigureApplication(app => {
                app.AddOrUpdateProperty<string>("ServiceName");                
                });            
            });    
}
I got this:
What am I missing ?
6 Answer(s)
- 
    0I also tried to add on Auto Mapper Profile public class IdentityServiceApplicationAutoMapperProfile : Profile { public IdentityServiceApplicationAutoMapperProfile() { CreateMap<OpenIddictApplication, ApplicationDto>().MapExtraProperties(); } }It throws an exception: AutoMapper.AutoMapperConfigurationException: Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parametersOpenIddictApplication -> ApplicationDto (Destination member list) Volo.Abp.OpenIddict.Applications.OpenIddictApplication -> Volo.Abp.OpenIddict.Applications.Dtos.ApplicationDto (Destination member list) Unmapped properties: AllowPasswordFlow AllowClientCredentialsFlow AllowAuthorizationCodeFlow AllowRefreshTokenFlow AllowHybridFlow AllowImplicitFlow AllowLogoutEndpoint AllowDeviceEndpoint Scopes 
- 
    0hi I also tried to add on Auto Mapper Profile Do not add this, The module will handle the mapper. Is the ExtraPropertiesexists on database table?Can you test your code with the latest project template? If still not working please share the project. liming.ma@volosoft.com 
- 
    0hi I also tried to add on Auto Mapper Profile Do not add this, The module will handle the mapper. Is the ExtraPropertiesexists on database table?Can you test your code with the latest project template? If still not working please share the project. liming.ma@volosoft.com Hi , I am using Microservices template v7.0.1, should I upgrade ? The field exists on database This is exactly what I want. 
- 
    0hi I am using Microservices template v7.0.1, should I upgrade ? Can you test your code with the latest project template? 
- 
    0hi I am using Microservices template v7.0.1, should I upgrade ? Can you test your code with the latest project template? Hi, I tried the latest version, same issue 
- 
    0hi Hi, I tried the latest version, same issue Please share this project and the steps, I will download it to test. liming.ma@volosoft.com Thanks 



 
                                