A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides.

2 years after

Issue Stats Issue Stats

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

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

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

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


Core documentation and samples can be found at the SQLProvider home page. This documentation is generated from docs/content/, so please feel free to submit a pull request if you have fixed typos are added additional samples and documentation!


  • 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


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

Related Repositories



A curated list of awesome F# frameworks, libraries, software and resources. ...



SQLKing is an Android SQLite ORM powered by an annotation preprocessor, tables a ...



System.Linq.Expression expressions optimizer. http://thorium.github.io/Linq.Expr ...



Home site (F# version) ...



Utility for comparing the contents returned from different queries ...