DeepBlueNice.FunctionTiemOut
1.0.2
See the version list below for details.
dotnet add package DeepBlueNice.FunctionTiemOut --version 1.0.2
NuGet\Install-Package DeepBlueNice.FunctionTiemOut -Version 1.0.2
<PackageReference Include="DeepBlueNice.FunctionTiemOut" Version="1.0.2" />
paket add DeepBlueNice.FunctionTiemOut --version 1.0.2
#r "nuget: DeepBlueNice.FunctionTiemOut, 1.0.2"
// Install DeepBlueNice.FunctionTiemOut as a Cake Addin #addin nuget:?package=DeepBlueNice.FunctionTiemOut&version=1.0.2 // Install DeepBlueNice.FunctionTiemOut as a Cake Tool #tool nuget:?package=DeepBlueNice.FunctionTiemOut&version=1.0.2
使用方法
IUser _user = MyProxyGenerator.CreateProxy<IUser, AccountUser>(); //每个类都生成代理对象
MethodOperationInfo.Show("控制器", "方法", SqlType.Text, "连接字符串"); //纯文本保存
MethodOperationInfo.Show("控制器", "方法", SqlType.Mssql, "连接字符串");//msSQL数据库
MethodOperationInfo.Show("控制器", "方法", SqlType.Mysql, "连接字符串");//MySQL数据库
MethodOperationInfo.Show("控制器", "方法", SqlType.Redis, "连接字符串");//Redis数据库
MethodOperationInfo.Show("控制器","方法", SqlType.Mongdb, "连接字符串", "FunctionTiemOut", $"Fun_{DateTime.Now.Year}_{DateTime.Now.Month}"); //Mongdb数据库型
废弃Show()旧的方法,重载一个更强大的方法出来。这里面会调用DbHelp()方法去完成日记的保存,目前日记提供Text, Mysql, Mssql, Mongdb, Redis这几种方式记录。建议调用ShowSk()方法,因为它是异常写入日记保存。
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 | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Abet.ServiceStack.Redis (>= 1.0.4)
- Castle.Core (>= 4.4.0)
- MongoDB.Driver (>= 2.14.1)
- MySql.Data (>= 8.0.28)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.添加dTime字段用于记录该方法被执行的时间。
2.Add(IInvocation invocation, double TotalMilliseconds) 修改添加时间
3.在处理mysql时发现这里是有定义 ft_create_time这字段,但它取的是mysql里面的时间,所以在实体中没有创建时间,这就很尴尬了。
4.修改 int MySqlAdd(Dictionary<string, MethodOperationInfo> dic, string controller, string action)
5.ShowSk()变更ShowAsync()表示这个是异步操作。(防止数据库或存储库没开启来时,加载异常慢的问题)
6.完善 Show()方法遇到mongodb时主动把控制器与方法名初充上来