Mook.DapperCore 2.2.4

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

// Install Mook.DapperCore as a Cake Tool
#tool nuget:?package=Mook.DapperCore&version=2.2.4

Mook.DapperCore - 支持Oracle同时支持多数据库实例

Example usage:
var connectionConfigs = builder.Configuration.GetSection("ConnectionStringList").Get<List<DatabaseConfig>>();
//Dapper多数据库实例{使用仓储时需指定数据库,repository.UseDatabase(dbConfigName)}
services.AddDapper(option =>
{
    option.ConnectionConfigs = connectionConfigs;
});

//Dapper单数据库实例
services.AddDapper(option =>
{
    //option.ConnectionString = Configuration["ConnectionString"];
    option.ConnectionString = "Data Source=.;DataBase=DapperDemo;User ID=Test;PWD=Test2021";
    option.DatabaseType = DatabaseType.SqlServer;
});
"ConnectionStringList": [
    {
      "DatabaseConfigName": "A",       
      "DatabaseType": "SqlServer",
      "ConnectionString": "Data Source=...;User ID=A;Password=A"
    },
    {
      "DatabaseConfigName": "B",
      "DatabaseType": "Mysql",
      "connectionString": "Data Source=...;User ID=B;Password=B"
    },
    {
      "DatabaseConfigName": "C",
      "DatabaseType": "Oracle",
      "ConnectionString": "Data Source=...;User ID=C;Password=C"
    },
    {
      "DatabaseConfigName": "D",
      "DatabaseType": "Oracle",
      "ConnectionString": "Data Source=...;User ID=D;Password=D"
    }, 
    {
      "DatabaseConfigName": "E",
      "DatabaseType": "SqlServer",
      "ConnectionString": "Data Source=...;User ID=E;Password=E"
    }
]
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 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 Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
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 Mook.DapperCore:

Package Downloads
Mook.Admin.Core

Admin.Core

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.4 281 6/2/2023
2.2.3 396 9/13/2022