You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtraProperties ignored if ProjectTo<> method of AutoMapper was used.
Reproduction Steps
Add any extra property to IdentityUser
Rune pseudo code:
public UsersController(IReadOnlyRepository<IdentityUser> repo, IMapper mapper)
{
}
public async Task<IQueryable<IdentityUserDto>> Get()
{
var queryCustom = (await _dataSet.GetDbSetAsync()).Where(t => t.Surname == "Dow");
var resultNotMapped = queryCustom.ToList(); //here we have ExtraProperty set
var mappedQuery = _mapper.ProjectTo<IdentityUserDto>(queryCustom);
var resultMapped = mapperQuery.ToList(); // ExtraProperty always is 0 list
return mappedQuery;
}
Expected behavior
ProjectTo correctly handling ExtraProperties
Actual behavior
ProjectTo not handling ExtraProperties
Regression?
No response
Known Workarounds
No response
Version
8.1.1
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description
ExtraProperties ignored if ProjectTo<> method of AutoMapper was used.
Reproduction Steps
Expected behavior
ProjectTo correctly handling ExtraProperties
Actual behavior
ProjectTo not handling ExtraProperties
Regression?
No response
Known Workarounds
No response
Version
8.1.1
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: