SQLProvider 1.5.17

dotnet add package SQLProvider --version 1.5.17
                    
NuGet\Install-Package SQLProvider -Version 1.5.17
                    
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="SQLProvider" Version="1.5.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SQLProvider" Version="1.5.17" />
                    
Directory.Packages.props
<PackageReference Include="SQLProvider" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SQLProvider --version 1.5.17
                    
#r "nuget: SQLProvider, 1.5.17"
                    
#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.
#:package SQLProvider@1.5.17
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SQLProvider&version=1.5.17
                    
Install as a Cake Addin
#tool nuget:?package=SQLProvider&version=1.5.17
                    
Install as a Cake Tool

Issue Status PR Status

SQLProvider NuGet Status

Join the chat at https://gitter.im/fsprojects/SQLProvider

A general .NET/Mono SQL database type provider. Current features :

  • LINQ queries
  • Lazy schema exploration
  • Automatic constraint navigation
  • Individuals
  • Transactional CRUD operations with identity support
  • Two-way data binding
  • Stored Procedures
  • Functions
  • Packages (Oracle)
  • Composable Query integration
  • Optional option types
  • Mapping to record types
  • Custom Operators
  • Supports Asynchronous Operations
  • Supports .NET Standard / .NET Core
  • Supports saving DB schema offline, and SQL-Server *.dacpac files

The provider currently has explicit implementations for the following database vendors :

  • SQL Server
  • SQLite
  • PostgreSQL
  • Oracle
  • MySQL (& MariaDB)
  • MsAccess
  • Firebird
  • DuckDB

There is also an ODBC provider that will let you connect to any ODBC source with limited features.

Documentation

SQLProvider home page contains the core documentation and samples. This documentation originates from docs/content/, so please feel free to submit a pull request if you fix typos or add additional samples and documentation!

Building

  • Mono: Run build.sh Mono build status
  • Windows: Run build.cmd Build status

Known issues

  • Database vendors other than SQL Server and Access use dynamic assembly loading. This may cause some security problems depending on your system's configuration and which version of the .NET framework you are using. If you encounter problems loading dynamic assemblies, they can likely be resolved by applying the following element into the configuration files of fsi.exe, devenv.exe and your program or the program using your library: http://msdn.microsoft.com/en-us/library/dd409252(VS.100).aspx

Example

No OR-mapping: FSharp compiles your database to .NET-types.

Maintainer(s)

The default maintainer account for projects under "fsprojects" is @fsprojectsgit - F# Community Project Incubation Space (repo management)

Nuget Packages

Database Nuget Package TypeProvider Class NuGet Status
Microsoft SQL Server SQLProvider.MsSql FSharp.Data.Sql.MsSql.SqlDataProvider Nuget Nuget
PostgreSQL SQLProvider.PostgreSql FSharp.Data.Sql.PostgreSql.SqlDataProvider Nuget Nuget
MySQL and MariaDB SQLProvider.MySqlConnector FSharp.Data.Sql.MySqlConnector.SqlDataProvider Nuget Nuget
MySQL SQLProvider.MySql FSharp.Data.Sql.MySql.SqlDataProvider Nuget Nuget
Oracle SQLProvider.Oracle FSharp.Data.Sql.Oracle.SqlDataProvider Nuget Nuget
Any ODBC connection SQLProvider.Odbc FSharp.Data.Sql.Odbc.SqlDataProvider Nuget Nuget
SQLite SQLProvider.SQLite FSharp.Data.Sql.SQLite.SqlDataProvider Nuget Nuget
Microsoft Access SQLProvider.MsAccess FSharp.Data.Sql.MsAccess.SqlDataProvider Nuget Nuget
Firebird SQLProvider.Firebird FSharp.Data.Sql.Firebird.SqlDataProvider Nuget Nuget
DuckDb SQLProvider.DuckDb FSharp.Data.Sql.DuckDb.SqlDataProvider Nuget Nuget
General, all via manual config SQLProvider FSharp.Data.Sql.SqlDataProvider Nuget Nuget

Depending on the used provider, the namespace of the SqlDataProvider type class varies as above.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on SQLProvider:

Package Downloads
Softellect.Sys

Softellect Sys Library provides primitive types and functionality needed by other Softellect packages.

Softellect.Messaging

Softellect Messaging Library provides a simple general framework to exchange large messages without specific IO.

FCQRS.SqlProvider

Package Description

Softellect.DistributedProcessing.Core

Softellect WorkerNode ...

FCQRS8.SQLProvider

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.17 315 9/14/2025
1.5.16 286 9/9/2025
1.5.14 318 8/29/2025
1.5.12 1,213 7/21/2025
1.5.11 439 6/24/2025
1.5.10 243 6/19/2025
1.5.9 360 6/5/2025
1.5.8 214 6/4/2025
1.5.7 573 5/13/2025
1.5.6 233 5/6/2025
1.5.5 227 5/5/2025
1.5.3 249 4/30/2025
1.5.0 287 4/24/2025
1.4.13 671 4/8/2025
1.4.12 816 3/12/2025
1.4.11 242 3/12/2025
1.4.9 1,736 2/23/2025
1.4.8 400 2/13/2025
1.4.7 365 2/7/2025
1.4.5 649 2/4/2025
1.4.4 233 2/4/2025
1.4.3 835 1/15/2025
1.4.2 5,080 11/7/2024
1.4.1 1,057 10/18/2024
1.4.0 1,033 9/27/2024
1.3.54 256 2/13/2025
1.3.53 457 2/7/2025
1.3.52 218 2/4/2025
1.3.51 188 2/4/2025
1.3.50 303 1/15/2025
1.3.49 495 11/7/2024
1.3.48 429 10/18/2024
1.3.47 316 10/9/2024
1.3.46 656 9/16/2024
1.3.45 424 9/9/2024
1.3.43 3,151 7/8/2024
1.3.42 250 7/4/2024
1.3.41 30,280 6/29/2024
1.3.40 234 6/27/2024
1.3.39 381 6/21/2024
1.3.38 479 6/5/2024
1.3.37 315 5/25/2024
1.3.36 1,343 4/19/2024
1.3.35 1,158 4/9/2024
1.3.34 558 4/4/2024
1.3.33 353 4/1/2024
1.3.32 343 3/27/2024
1.3.31 287 3/25/2024
1.3.30 470 3/18/2024
1.3.29 1,478 3/12/2024
1.3.28 247 3/11/2024
1.3.27 620 2/29/2024
1.3.26 272 2/27/2024
1.3.25 249 2/27/2024
1.3.24 275 2/23/2024
1.3.23 6,690 1/11/2024
1.3.22 4,180 11/13/2023
1.3.21 278 11/10/2023
1.3.19 743 10/30/2023
1.3.18 763 10/22/2023
1.3.17 266 10/21/2023
1.3.16 239 10/21/2023
1.3.15 343 10/19/2023
1.3.14 1,121 10/10/2023
1.3.13 346 10/8/2023
1.3.12 287 10/7/2023
1.3.11 3,319 7/13/2023
1.3.10 1,707 6/19/2023
1.3.9 502 6/15/2023
1.3.8 2,488 5/12/2023
1.3.7 3,526 3/8/2023
1.3.6 7,264 1/9/2023
1.3.5 3,501 12/20/2022
1.3.4 3,645 12/4/2022
1.3.3 1,053 11/18/2022
1.3.2 2,327 11/8/2022
1.3.1 88,641 8/10/2022
1.3.1-alpha3 320 8/4/2022
1.3.1-alpha2 583 7/6/2022
1.3.1-alpha 366 6/27/2022
1.2.12 9,466 8/4/2022
1.2.11 32,279 2/21/2022
1.2.10 5,124 10/21/2021
1.2.9 3,350 8/9/2021
1.2.8 712 8/9/2021
1.2.7 1,715 7/19/2021
1.2.6 1,044 7/12/2021
1.2.5 987 6/30/2021
1.2.4 726 6/28/2021
1.2.3 1,578 6/25/2021
1.2.1 14,915 3/15/2021
1.2.0 3,535 3/5/2021
1.2.0-alpha 574 3/3/2021
1.1.102 232 4/3/2024
1.1.101 37,565 2/7/2021
1.1.100 2,456 1/25/2021
1.1.99 3,576 1/12/2021
1.1.98 2,787 1/2/2021
1.1.97 2,454 12/25/2020
1.1.96 2,353 12/21/2020
1.1.95 2,206 12/19/2020
1.1.94 2,078 11/27/2020
1.1.93 2,414 10/13/2020
1.1.92 1,530 9/18/2020
1.1.91 10,291 6/4/2020
1.1.90 1,056 6/4/2020
1.1.89 1,327 6/2/2020
1.1.88 1,053 5/31/2020
1.1.87 1,565 5/20/2020
1.1.86 2,672 5/5/2020
1.1.85 1,137 5/1/2020
1.1.84 4,510 2/26/2020
1.1.83 2,059 2/11/2020
1.1.82 1,101 2/10/2020
1.1.81 1,429 2/5/2020
1.1.80 1,067 2/5/2020
1.1.79 2,606 2/4/2020
1.1.78 1,179 2/4/2020
1.1.76 7,591 12/10/2019
1.1.75 5,579 11/18/2019
1.1.74 2,046 11/12/2019
1.1.73 1,258 11/11/2019
1.1.72 1,344 11/10/2019
1.1.71 1,721 11/1/2019
1.1.68 26,026 9/10/2019
1.1.67 1,853 8/29/2019
1.1.66 4,734 7/31/2019
1.1.65 6,752 6/6/2019
1.1.64 2,077 6/4/2019
1.1.63 2,625 5/14/2019
1.1.62 6,017 4/23/2019
1.1.61 2,534 4/9/2019
1.1.60 5,564 3/20/2019
1.1.59 2,257 3/2/2019
1.1.59-alpha2 1,393 3/2/2019
1.1.58 3,338 1/19/2019
1.1.57 2,699 1/4/2019
1.1.56 1,867 1/2/2019
1.1.55 1,961 12/23/2018
1.1.54 2,703 12/13/2018
1.1.53 8,614 11/30/2018
1.1.52 8,721 9/13/2018
1.1.51 2,152 9/10/2018
1.1.50 2,430 9/5/2018
1.1.49 3,209 8/24/2018
1.1.48 3,092 7/27/2018
1.1.47 2,191 7/26/2018
1.1.45 4,337 7/5/2018
1.1.44 2,695 6/25/2018
1.1.43 2,770 6/12/2018
1.1.42 4,112 5/3/2018
1.1.41 4,825 4/16/2018
1.1.40 2,483 4/10/2018
1.1.39 2,657 3/28/2018
1.1.38 5,153 3/14/2018
1.1.37 3,043 3/1/2018
1.1.36 3,138 2/24/2018
1.1.35 2,928 2/16/2018
1.1.34 2,598 2/15/2018
1.1.33 2,477 2/14/2018
1.1.32 2,511 2/13/2018
1.1.31 3,150 2/1/2018
1.1.30 2,499 2/1/2018
1.1.29 2,676 1/25/2018
1.1.28 2,851 1/19/2018
1.1.27 2,393 1/19/2018
1.1.26 2,904 1/12/2018
1.1.26-alpha1 2,069 1/10/2018
1.1.25 2,696 1/10/2018
1.1.24 2,903 1/10/2018
1.1.23 5,092 11/20/2017
1.1.22 2,666 11/9/2017
1.1.21 2,469 11/7/2017
1.1.20 2,494 11/6/2017
1.1.19 2,627 11/1/2017
1.1.18 2,995 10/27/2017
1.1.14 2,772 10/17/2017
1.1.13 2,408 10/17/2017
1.1.12 2,739 10/10/2017
1.1.11 5,674 9/26/2017
1.1.10 3,790 9/22/2017
1.1.8 4,128 9/7/2017
1.1.7 4,742 8/10/2017
1.1.6 2,905 7/19/2017
1.1.5 3,740 7/5/2017
1.1.4 3,091 6/19/2017
1.1.3 4,527 6/2/2017
1.1.2 2,695 5/15/2017
1.1.1 2,199 5/13/2017
1.1.0 2,269 5/10/2017
1.0.57 9,993 5/9/2017
1.0.55 2,191 5/7/2017
1.0.54 2,573 4/26/2017
1.0.53 2,281 4/21/2017
1.0.52 2,625 4/9/2017
1.0.51 2,296 4/6/2017
1.0.50 2,157 4/5/2017
1.0.49 2,167 4/5/2017
1.0.47 2,537 3/18/2017
1.0.46 2,229 3/14/2017
1.0.45 2,147 3/13/2017
1.0.44 2,199 3/12/2017
1.0.43 2,659 2/22/2017
1.0.42 3,234 2/3/2017
1.0.41 3,248 1/11/2017
1.0.40 3,028 12/23/2016
1.0.38 2,136 12/22/2016
1.0.37 4,735 11/8/2016
1.0.36 2,641 10/25/2016
1.0.35 2,786 10/8/2016
1.0.34 2,405 10/3/2016
1.0.33 3,374 9/16/2016
1.0.32 2,324 9/5/2016
1.0.31 2,438 8/27/2016
1.0.29 2,213 8/23/2016
1.0.28 2,211 8/19/2016
1.0.27 2,266 8/18/2016
1.0.26 2,235 8/15/2016
1.0.25 2,260 8/13/2016
1.0.24 2,350 8/5/2016
1.0.23 2,524 8/2/2016
1.0.22 3,848 7/2/2016
1.0.21 2,256 6/29/2016
1.0.20 2,340 6/23/2016
1.0.19 2,217 6/23/2016
1.0.18 2,292 6/21/2016
1.0.17 2,788 6/15/2016
1.0.16 2,333 6/14/2016
1.0.15 2,452 6/13/2016
1.0.13 3,217 6/11/2016
1.0.12 2,455 6/1/2016
1.0.11 2,352 5/31/2016
1.0.10 2,307 5/29/2016
1.0.9 2,162 5/29/2016
1.0.8 2,216 5/27/2016
1.0.7 2,206 5/27/2016
1.0.6 2,641 5/15/2016
1.0.5 2,278 5/9/2016
1.0.4 2,201 5/6/2016
1.0.2 2,903 5/5/2016
1.0.0 3,328 4/16/2016
0.0.11-alpha 3,801 1/2/2016
0.0.9-alpha 5,153 5/21/2014
0.0.8-alpha 2,378 5/20/2014
0.0.7-alpha 1,998 5/17/2014
0.0.6-alpha 2,462 2/12/2014
0.0.5-alpha 1,950 1/29/2014
0.0.3-alpha 2,307 12/24/2013
0.0.2-alpha 2,044 12/16/2013
0.0.1-alpha 2,259 12/15/2013

DateTimeOffset function translations
Faster disposing of commands
No reflection on SQLProvider.SQLite if pre-defined library