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: docs/SetupGuide_DotnetOutOfProc.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ See [Input Binding Overview](./BindingsOverview.md#input-binding) for general in
38
38
39
39
### SqlInputAttribute for Input Bindings
40
40
41
-
The [SqlInputAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/Worker.Extension.Sql/src/SqlInputAttribute.cs) takes four arguments:
41
+
The [SqlInputAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/Worker.Extensions.Sql/src/SqlInputAttribute.cs) takes four arguments:
42
42
43
43
-**CommandText**: Passed as a constructor argument to the binding. Represents either a query string or the name of a stored procedure.
44
44
-**CommandType**: Specifies whether CommandText is a query (`System.Data.CommandType.Text`) or a stored procedure (`System.Data.CommandType.StoredProcedure`)
@@ -49,17 +49,17 @@ The following are valid binding types for the result of the query/stored procedu
49
49
50
50
-**IEnumerable<T>**: Each element is a row of the result represented by `T`, where `T` is a user-defined POCO, or Plain Old C# Object. `T` should follow the structure of a row in the queried table. See the [Query String](#query-string) section for an example of what `T` should look like.
51
51
-**IAsyncEnumerable<T>**: Each element is again a row of the result represented by `T`, but the rows are retrieved "lazily". A row of the result is only retrieved when `MoveNextAsync` is called on the enumerator. This is useful in the case that the query can return a very large amount of rows.
52
-
-**String**: A JSON string representation of the rows of the result (an example is provided [here](https://github.com/Azure/azure-functions-sql-extension/blob/main/samples/samples-outpofproc/InputBindingSamples/GetProductsString.cs)).
52
+
-**String**: A JSON string representation of the rows of the result (an example is provided [here](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-outpofproc/InputBindingSamples/GetProductsString.cs)).
53
53
54
54
**Note**: There's also no direct support for types inherited from underlying service SDKs, such as SqlCommand. Instead, bindings rely on strings, arrays, and serializable types, such as plain old class objects (POCOs).
55
55
56
56
The repo contains examples of each of these binding types [here](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-outofproc/InputBindingSamples). A few examples are also included [below](#samples-for-input-bindings).
57
57
58
58
### Setup for Input Bindings
59
59
60
-
Note: This tutorial requires that a SQL database is setup as shown in [Create a SQL Server](./QuickStart.md#create-a-sql-server).
60
+
Note: This tutorial requires that a SQL database is setup as shown in [Create a SQL Server](./GeneralSetup.md#create-a-sql-server).
61
61
62
-
- Open your app that you created in [Create a Function App](./QuickStart.md#create-a-function-app) in VS Code
62
+
- Open your app that you created in [Create a Function App](./GeneralSetup.md#create-a-function-app) in VS Code
63
63
- Press 'F1' and search for 'Azure Functions: Create Function'
64
64
- Choose HttpTrigger -> (Provide a function name) -> Company.namespace -> anonymous
65
65
- In the file that opens, replace the `public static async Task<IActionResult> Run` block with the below code.
@@ -234,7 +234,7 @@ See [Output Binding Overview](./BindingsOverview.md#output-binding) for general
234
234
235
235
### SqlOutputAttribute for Output Bindings
236
236
237
-
The [SqlOutputAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/Worker.Extension.Sql/src/SqlOutputAttribute.cs) takes two arguments:
237
+
The [SqlOutputAttribute](https://github.com/Azure/azure-functions-sql-extension/blob/main/Worker.Extensions.Sql/src/SqlOutputAttribute.cs) takes two arguments:
238
238
239
239
-**CommandText**: Passed as a constructor argument to the binding. Represents the name of the table into which rows will be upserted.
240
240
-**ConnectionStringSetting**: Specifies the name of the app setting that contains the SQL connection string used to connect to a database. The connection string must follow the format specified [here](https://docs.microsoft.com/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-2.0).
@@ -250,7 +250,7 @@ The repo contains examples of each of these binding types [here](https://github.
250
250
251
251
### Setup for Output Bindings
252
252
253
-
Note: This tutorial requires that a SQL database is setup as shown in [Create a SQL Server](./QuickStart.md#create-a-sql-server), and that you have the 'Employee.cs' class from the [Setup for Input Bindings](#setup-for-input-bindings) section.
253
+
Note: This tutorial requires that a SQL database is setup as shown in [Create a SQL Server](./GeneralSetup.md#create-a-sql-server), and that you have the 'Employee.cs' class from the [Setup for Input Bindings](#setup-for-input-bindings) section.
254
254
255
255
- Open your app in VS Code
256
256
- Press 'F1' and search for 'Azure Functions: Create Function'
0 commit comments