Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Properties not available for querying after framework Upgrad #686


User avatar
0
antpstevens created

for a query like following

var query = UserManager.Users .Include(u => u.Roles) .WhereIf( !input.Filter.IsNullOrWhiteSpace(), u => u.Name.Contains(input.Filter) || u.Surname.Contains(input.Filter) || u.UserName.Contains(input.Filter) || u.EmailAddress.Contains(input.Filter) );

framework throws error

The method 'Abp.Authorization.Users.AbpUserBase.get_UserName' is not a property accessor

To fix the issue, I have to enumerate( call ToList()) and query the list, which gives me performance issues.


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Are you sure that you upgraded all Abp.* and Abp.Zero.* nuget packages? Because it's properly working for us.