Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We are migrating our .Net 4.6 webapis to .net 8.0. The APIs use SQLHelper class. Do we have sqlhelper class in .net core that corresponds to the old Data access application block class.

What I have tried:

We tried to download a nuget package for SQLHelper but it is giving error
Posted
Updated 23-Dec-23 4:35am
v2

1 solution

The SqlHelpers class does not exist in .NET (Core). The last version of .NET that supported it was .NET Framework 4.8.1.

The class name was "SqlHelpers", not "SqlHelper".

AFAIK, there is no equivalent in .NET 8.0.

I suppose you can go to the .NET Reference Source and get the source code for the SqlHelpers class and just make it yourself. Reference Source - SqlHelpers[^]. Of course, you'll have to make some changes because your source won't have all of the build infrastructure the Reference Source has, like a custom Errors class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900