Kec.Dapper
1.60.6.6
See the version list below for details.
dotnet add package Kec.Dapper --version 1.60.6.6
NuGet\Install-Package Kec.Dapper -Version 1.60.6.6
<PackageReference Include="Kec.Dapper" Version="1.60.6.6" />
paket add Kec.Dapper --version 1.60.6.6
#r "nuget: Kec.Dapper, 1.60.6.6"
// Install Kec.Dapper as a Cake Addin
#addin nuget:?package=Kec.Dapper&version=1.60.6.6
// Install Kec.Dapper as a Cake Tool
#tool nuget:?package=Kec.Dapper&version=1.60.6.6
1、将项目原有Dapper、Dapper.Contrib包卸载,在nuget管理器中搜索安装Kec.Dapper和Kec.Dapper.Contrib 2、添加实现Dapper.IUserHelper接口, public class UserHelper : Dapper.IUserHelper { public int GetCompanyNodeId() { return AuthContextManager.IsAuthenticated ? AuthContextManager.CurrentUser.CompanyNodeId : 0; }
public string GetCompanyNodeName()
{
return AuthContextManager.IsAuthenticated ? AuthContextManager.CurrentUser.CompanyNodeName : "unknown";
}
public string GetDisplayName()
{
return AuthContextManager.IsAuthenticated ? AuthContextManager.CurrentUser.DisplayName : "unknown";
}
public int GetID()
{
return AuthContextManager.IsAuthenticated ? AuthContextManager.CurrentUser.Id : 0;
}
public string GetLoginName()
{
return AuthContextManager.IsAuthenticated ? AuthContextManager.CurrentUser.LoginName : "unknown";
}
}
3、在Startup.cs文件,Configure里添加如下代码到app.UseMvc();前 Dapper.SqlMapper.Settings.EntityChangeLog = true; //dapper实体引用计数配置 Dapper.IUserHelper userHelper = new UserHelper(); Dapper.KECExtenssions.Configure(userHelper, Configuration.GetValue<string>("DB_RENT_BASE")); 4、在appsettings.json中添加DB_RENT_BASE配置
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 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 was computed. |
.NET Framework | net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. 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. |
-
.NETFramework 4.5.1
- Castle.Core (>= 4.4.0)
- Newtonsoft.Json (>= 12.0.2)
- System.Data.SqlClient (>= 4.6.1)
-
.NETStandard 2.0
- Castle.Core (>= 4.4.0)
- Newtonsoft.Json (>= 12.0.2)
- System.Data.SqlClient (>= 4.6.1)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Kec.Dapper:
Package | Downloads |
---|---|
Kec.Dapper.Contrib
The official collection of get, insert, update and delete helpers for Dapper.net. Also handles lists of entities and optional "dirty" tracking of interface-based entities. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.4 | 2,129 | 10/16/2019 |
1.60.6.11 | 638 | 9/3/2019 |
1.60.6.10 | 452 | 9/3/2019 |
1.60.6.9 | 1,218 | 8/3/2019 |
1.60.6.8 | 1,664 | 7/8/2019 |
1.60.6.7 | 486 | 7/8/2019 |
1.60.6.6 | 470 | 7/6/2019 |
1.60.6.5 | 491 | 7/3/2019 |
1.60.6.4 | 476 | 7/3/2019 |
1.60.6.3 | 1,426 | 7/3/2019 |
1.60.6.2 | 450 | 7/3/2019 |
1.60.6.1 | 872 | 7/3/2019 |
1.60.6 | 887 | 7/3/2019 |
修改实体引用计数财务表的配置