Open Closed

Using Volo.Abp.EntityFrameworkCore in Microservice application project #1928


User avatar
0
steve.burgess created
  • ABP Framework version: v4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Hi,

I'm currently using the microservice template.

The IQueryable and Async section of this doc: https://docs.abp.io/en/abp/4.4/Repositories#iqueryable-async-operations talks about adding Volo.Abp.EntityFrameworkCore to the application layer so that you can access various EF Core aysnc methods such as ToListAsync.

I've attempted to do this, but Volo.Abp.EntityFrameworkCore is not compatible with the version of .net standard 2 that’s being used by default in the application layer (2.0.3).

Am i missing something? Is it just a case of upgrading .net standard to 2.1?

Cheers,

Steve.


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

    hi Because Microsoft's EntityFrameworkCore also only supports net standard 2.1.

  • User Avatar
    0
    steve.burgess created

    Hi,

    I assume the docs were created when the framework was targeting .net core 3 then?

    Are there any plans to update to .net standard to 2.1?

    Cheers,

    Steve.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can consider to use IAsyncQueryableExecuter, it's target to netstandard2.0.

    https://docs.abp.io/en/abp/latest/Repositories#option-3-iasyncqueryableexecuter

  • User Avatar
    0
    steve.burgess created

    I'll take a look at that, thanks,

    Steve.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You're welcome.

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