Mook.DapperCore
2.2.3
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 Mook.DapperCore --version 2.2.3
NuGet\Install-Package Mook.DapperCore -Version 2.2.3
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.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mook.DapperCore --version 2.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mook.DapperCore, 2.2.3"
#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.3 // Install Mook.DapperCore as a Cake Tool #tool nuget:?package=Mook.DapperCore&version=2.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Microsoft.Data.Sqlite.Core (>= 6.0.5)
- Microsoft.Extensions.Options (>= 6.0.0)
- MySql.Data (>= 8.0.29)
- Npgsql (>= 6.0.4)
- Oracle.ManagedDataAccess.Core (>= 3.21.61)
- System.Data.SqlClient (>= 4.8.3)
-
net6.0
- Microsoft.Data.Sqlite.Core (>= 6.0.5)
- Microsoft.Extensions.Options (>= 6.0.0)
- MySql.Data (>= 8.0.29)
- Npgsql (>= 6.0.4)
- Oracle.ManagedDataAccess.Core (>= 3.21.61)
- System.Data.SqlClient (>= 4.8.3)
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.