How to create an API for a SQL query
Loading
How to create an API for a SQL query
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Mar 22, 2024, 10:29 AM
Hi,
There are several methods to retrieve SQL data in C#. So you can use Entity Framework or ADO.NET to fetch the data from the database. Regardless of the method chosen, it is possible to write the necessary logic within a Web API.
You can go through this article.
https://www.c-sharpcorner.com/article/creating-a-web-api-post-method-to-retrieve-data-from-sql-database-using-asp-net/