Entity Framework Core (EF Core)

0
0

Hello,

I want to know how to properly setup EFCore in a wisej.net application. I’m having a very hard time doing that….
Specifically:

  • how to setup EF Core with the needed connection string, e.g. service.AddDbContext ….
  • how to inject DBContext class and use it anywhere

Best regards,

Ali

  • You must to post comments
0
0

Hi Ali,

To be able to use the injected services like a regular ASP.NET Core application, it would be better to use Microsoft’s implementation.

We have that documented this approach, please visit https://docs.wisej.com/docs/concepts/dependency-injection#alternative-iserviceprovider for more information!

Best,
Alaa

//

  • Ali Badran
    Yes i’m using that currently, thank u!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.