Integrating the ScoreText function with the SQL database

Now that we have created our SQL Server database, it is time to configure our Azure Function to store the output in the DocumentTextScore table.

In this book, we will use an inherent feature of Azure Functions, which allows us to define the SQL connection as an output binding. To do so, we will use a new library called ApiHub SDK, which allows us to interact with an SQL database as if we were interacting with an external API. This approach makes it easier for us to swap the connection out for a different type of data store if required in the future.

Lets execute the following steps to integrate the ScoreText function with the your SQL database:

  1. To add the SQL table as the output, go ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.