- ABP Framework version: v7.1
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:"
I want to add property with foreign key from another table for "User" with "Object Extension Manager".
user.AddOrUpdateProperty<Guid?>("EgitimKonuGrupId", property => { property.UI.Lookup.Url = "/api/departments"; property.UI.Lookup.DisplayPropertyName = "ad"; });
controller:
[Route("api/departments")] public class DepartmentController : AbpController { [HttpGet] public async Task<ListResultDto<EgitimKonuGrupDto>> GetAsync() { return new ListResultDto<EgitimKonuGrupDto>( new[] { new EgitimKonuGrupDto { Id = Guid.Parse("EEB064A5-F160-8A02-ADC2-3A0A1B5D1230"), Ad = "Human Resources" }, new EgitimKonuGrupDto { Id = Guid.Parse("41312C2A-1169-BBBF-256A-3A0A1B5D2A09"), Ad= "Production" } } ); } }
In the user edit screen, I select from the drop-down list and save. correctly saves to the database. but when I open it for editing again, the data I selected does not come as selected.
3 Answer(s)
-
0
Hi, could you please provide me with the exact version you are using so that I can investigate the issue in detail?
-
0
I had this situation in version 7.0. I updated to version 7.1. and the same situation continues. I am using blazor server as architecture. There is no problem in mvc architecture. the problem happens when in blazor architecture.
-
0
I have tested the issue, and I was able to reproduce it. An internal issue has been opened about this. Thank you very much for reporting the issue to us.