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

Stored Procedure - previous support example was followed, cannot get to work #10547


User avatar
0
kevinjhackett created

Product Version: ASPNET ZERO 10.2 Product Type: ASP.NET Core and jQuery Framework: .NET 5.0 ABP Version: default 6.2 - no upgrades

I have followed the previous example documented in this support question: https://support.aspnetzero.com/QA/Questions/3950

I installed the package in the .Core project as mentioned in the support ticket

The only differences between my code and the examples is I named my classes IStoredProcRepository and StoredProcRepository instead of IUserRepository & UserRepository.

Still getting error: "The name 'Context' does not exist in the current context"


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

    Hi,

    You can use GetContext method to get the context first and then use it. Something like this;

    GetContext().Database...

    Thanks,