Open Closed

Where extension method doesn't contain the definition. #4235


User avatar
0
Repunjay created

Hi Team,

I am getting below exceptions after migration the abp version to 6.

Please refer attached images and let me know the correct resolution for this.

errors mostly related to the namespace - Volo.Abp.Identity

Please provide the resolution asap.

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: vX.X.X
  • UI type: Angular / MVC / Blazor
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    HI

    GetQueryableAsync

    var users = await (await _appUserRepository.GetQueryableAsync())
                    .Where(x => x...)
                    .FirstOrDefaultAsync();
    
  • User Avatar
    0
    Repunjay created

    Hi Thanks for your reply, but some of the ABP Interfaces doesn't contain the definition for GetQueryableAsync() also (attached screen shots), how to do handle this kind of errors?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The built-in modules are using the IBasicRepository

    Depending on IBasicRepository but not depending on IRepository has an advantage to make possible to work with all data sources even if they don't support IQueryable.

    https://docs.abp.io/en/abp/latest/Repositories#basic-repositories

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38