Pawelharacz.Webjobs.Extensions.MSSqlDatabase
0.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Pawelharacz.Webjobs.Extensions.MSSqlDatabase --version 0.1.1
NuGet\Install-Package Pawelharacz.Webjobs.Extensions.MSSqlDatabase -Version 0.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pawelharacz.Webjobs.Extensions.MSSqlDatabase" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pawelharacz.Webjobs.Extensions.MSSqlDatabase --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pawelharacz.Webjobs.Extensions.MSSqlDatabase, 0.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pawelharacz.Webjobs.Extensions.MSSqlDatabase as a Cake Addin
#addin nuget:?package=Pawelharacz.Webjobs.Extensions.MSSqlDatabase&version=0.1.1
// Install Pawelharacz.Webjobs.Extensions.MSSqlDatabase as a Cake Tool
#tool nuget:?package=Pawelharacz.Webjobs.Extensions.MSSqlDatabase&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sql Database Binding
The solution adds new sql bindings to azure function v2 and v3
Quick start
CLI:
dotnet add package Pawelharacz.Webjobs.Extensions.MSSqlDatabase
csproj:
<PackageReference Include="Pawelharacz.Webjobs.Extensions.MSSqlDatabase" Version="0.1.0" />
Binding
Currently solution supports only input bindnig. The Project adds a MsSqlDb attribute
- SqlQuery is required - it's a query which will be invoked
- ConnectionStringSetting - name of application setting key. default key is "MsSqlDb"
Bining's mapping:
- IEnumerable collection on our defined class
- Single item of defined class
Examples
[FunctionName("TestFunc")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get")]
HttpRequest req,
[MsSqlDb(SqlQuery = "Select Id, Name from Examples", ConnectionStringSetting = "MsSqlConnectionString")] IEnumerable<Example> examples)
[FunctionName("TestFunc")]
public static async Task<IActionResult> RunFilterOneAsync(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "TestFunc/one/{id}")]
HttpRequest req,
[MsSqlDb(SqlQuery = "Select Id, Name from Examples where id = {id}")] Example example)
Full examples are available here
Known issues
- Azure function v3 requires functions v2 compatibility mode. it can be turned on using this app setting: "FUNCTIONS_V2_COMPATIBILITY_MODE": "true"
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.0
- FastMember (>= 1.5.0)
- Microsoft.Azure.WebJobs (>= 3.0.14)
- Microsoft.Azure.WebJobs.Host.Storage (>= 3.0.14)
- Microsoft.CSharp (>= 4.5.0)
- System.Data.SqlClient (>= 4.6.1)
-
.NETCoreApp 3.1
- FastMember (>= 1.5.0)
- Microsoft.Azure.WebJobs (>= 3.0.14)
- Microsoft.Azure.WebJobs.Host.Storage (>= 3.0.14)
- Microsoft.CSharp (>= 4.7.0)
- System.Data.SqlClient (>= 4.8.0)
-
.NETStandard 2.1
- FastMember (>= 1.5.0)
- Microsoft.Azure.WebJobs (>= 3.0.14)
- Microsoft.Azure.WebJobs.Host.Storage (>= 3.0.14)
- Microsoft.CSharp (>= 4.5.0)
- System.Data.SqlClient (>= 4.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.3.0 | 401 | 11/1/2021 |
0.3.0-pullrequest0011-0004 | 247 | 11/1/2021 |
0.3.0-pullrequest0009-0027 | 176 | 11/1/2021 |
0.1.2 | 274 | 11/1/2021 |
0.1.1 | 480 | 1/12/2020 |
0.1.1-pullrequest0006-0004 | 332 | 1/12/2020 |
0.1.0 | 681 | 1/5/2020 |