You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-azure-sql-input.md
+118-2Lines changed: 118 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,12 @@ For information on setup and configuration details, see the [overview](./functio
21
21
22
22
::: zone pivot="programming-language-csharp"
23
23
24
-
More samples for the Azure SQL input binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-csharp).
More samples for the Azure SQL input binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-csharp).
29
+
28
30
This section contains the following examples:
29
31
30
32
*[HTTP trigger, get row by ID from query string](#http-trigger-look-up-id-from-query-string-c)
@@ -119,7 +121,121 @@ The stored procedure `dbo.DeleteToDo` must be created on the SQL database. In t
119
121
120
122
# [Isolated process](#tab/isolated-process)
121
123
122
-
Isolated worker process isn't currently supported.
124
+
More samples for the Azure SQL input binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-outofproc).
125
+
126
+
This section contains the following examples:
127
+
128
+
*[HTTP trigger, get row by ID from query string](#http-trigger-look-up-id-from-query-string-c-oop)
129
+
*[HTTP trigger, get multiple rows from route data](#http-trigger-get-multiple-items-from-route-data-c-oop)
The following example shows a [C# function](functions-dotnet-class-library.md) that retrieves a single record. The function is triggered by an HTTP request that uses a query string to specify the ID. That ID is used to retrieve a `ToDoItem` record with the specified query.
142
+
143
+
> [!NOTE]
144
+
> The HTTP query string parameter is case-sensitive.
### HTTP trigger, get multiple rows from route parameter
178
+
179
+
The following example shows a [C# function](functions-dotnet-class-library.md) that retrieves documents returned by the query. The function is triggered by an HTTP request that uses route data to specify the value of a query parameter. That parameter is used to filter the `ToDoItem` records in the specified query.
The following example shows a [C# function](functions-dotnet-class-library.md) that executes a stored procedure with input from the HTTP request query parameter.
213
+
214
+
The stored procedure `dbo.DeleteToDo` must be created on the SQL database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-azure-sql-output.md
+141-2Lines changed: 141 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,12 @@ For information on setup and configuration details, see the [overview](./functio
21
21
22
22
::: zone pivot="programming-language-csharp"
23
23
24
-
More samples for the Azure SQL output binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-csharp).
More samples for the Azure SQL output binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-csharp).
29
+
28
30
This section contains the following examples:
29
31
30
32
*[HTTP trigger, write one record](#http-trigger-write-one-record-c)
@@ -154,7 +156,144 @@ namespace AzureSQLSamples
154
156
155
157
# [Isolated process](#tab/isolated-process)
156
158
157
-
Isolated worker process isn't currently supported.
159
+
More samples for the Azure SQL output binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-outofproc).
160
+
161
+
This section contains the following examples:
162
+
163
+
*[HTTP trigger, write one record](#http-trigger-write-one-record-c-oop)
164
+
*[HTTP trigger, write to two tables](#http-trigger-write-to-two-tables-c-oop)
165
+
*[HTTP trigger, write records using IAsyncCollector](#http-trigger-write-records-using-iasynccollector-c-oop)
166
+
167
+
The examples refer to a `ToDoItem` class and a corresponding database table:
The following example shows a [C# function](functions-dotnet-class-library.md) that adds a record to a database, using data provided in an HTTP POST request as a JSON body.
The following example shows a [C# function](functions-dotnet-class-library.md) that adds records to a database in two different tables (`dbo.ToDo` and `dbo.RequestLog`), using data provided in an HTTP POST request as a JSON body and multiple output bindings.
### HTTP trigger, write records using IAsyncCollector
260
+
261
+
The following example shows a [C# function](functions-dotnet-class-library.md) that adds a collection of records to a database, using data provided in an HTTP POST body JSON array.
Functions execute in an isolated C# worker process. To learn more, see [Guide for running C# Azure Functions in an isolated worker process](dotnet-isolated-process-guide.md).
41
45
42
-
> [!NOTE]
43
-
> In the current preview, Azure SQL bindings aren't supported when your function app runs in an isolated worker process.
46
+
Add the extension to your project by installing this [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.Sql/).
44
47
45
-
<!--
46
-
Add the extension to your project by installing this [NuGet package](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.SignalRService/).
0 commit comments