FS.Dapper 9.0.0

dotnet add package FS.Dapper --version 9.0.0                
NuGet\Install-Package FS.Dapper -Version 9.0.0                
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="FS.Dapper" Version="9.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FS.Dapper --version 9.0.0                
#r "nuget: FS.Dapper, 9.0.0"                
#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 FS.Dapper as a Cake Addin
#addin nuget:?package=FS.Dapper&version=9.0.0

// Install FS.Dapper as a Cake Tool
#tool nuget:?package=FS.Dapper&version=9.0.0                

platform platform platform platform

database database database

license

Changelog

[9.0.0]

  • .NET 9 compliant

[8.1.6]

  • MySql.Data 9.0.0 → 9.1.0 update
  • Npgsql 8.0.4 → 8.0.5 update

[8.1.5]

  • Npgsql 8.0.3 → 8.0.4 update

[8.1.4]

  • Microsoft.Data.SqlClient 5.2.1 → 5.2.2 update

[8.1.3]

  • MySql.Data 8.4.0 → 9.0.0 update

[8.1.2]

  • Npgsql 8.0.2 → 8.0.3 update

[8.1.1]

  • Set MySQL provider type to MySQL Connector as default value if not specified

[8.1.0]

  • Added MySQL provider type: now is possible choose from MySQL Data provider and MySQL Connector provider

[8.0.6]

  • Added readonly connection / connection string into constructor (optional, default value is null). If readonly connection or readonly connection string is null, primary connection will be used for SelectAsync and SingleAsync methods
  • Minor fixes

[8.0.5]

  • MySQL Connector instead of MySQL Data
  • Added MS SQL Server support
  • Added PostgreSQL support

Usage

First method (MySQL connection example):

This method create a reusable connection:

string cnString = "<yourConnectionString>";
IDBConnection dbCn = new MySqlConnection(cnString);
services.AddSingleton<IDapperService>(new DapperService(dbCn));

Second method (MS SQL Server connection string example)

This method create a new connection everytime:

services.AddScoped<IDapperService>(new DapperService(DatabaseType.SQLServer, "<yourConnectionString>"));
DatabaseType accepted values:
- MySQL
- SQLServer
- PostgreSQL

Support

If you like this package, please support author offering him a coffee or donate with PayPal

License

MIT License

Copyright (c) 2019 FRΛƝCƎƧCØ ƧØЯRƎƝTIƝØ

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FS.Dapper:

Package Downloads
FS.ClientCache

Client cache service for .NET Core

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.0.0 40 11/13/2024
8.1.6 73 11/4/2024
8.1.5 93 9/24/2024
8.1.4 130 9/2/2024
8.1.3 365 7/2/2024
8.1.2 102 5/10/2024
8.1.1 115 5/3/2024
8.1.0 146 4/8/2024
8.0.2 117 8/13/2024
6.24.202.21646 147 2/2/2024
6.0.2 1,175 11/8/2022