摘要: 调试看出在执行dotnet.6.0.0.fof53xxcmn.js时出现ReferenceError: Cant find variable: globalThis错误 加入下面代码即可 <script> !function(t){function e(){var e=this||self;e.gl 阅读全文
posted @ 2021-12-23 17:06 Cody& 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 报错详细信息如下: System.InvalidOperationException: Property 'JsonResult.SerializerSettings' must be an instance of type 'System.Text.Json.JsonSerializerOptio 阅读全文
posted @ 2021-02-03 10:38 Cody& 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: 1、 “HttpContent”未包含“ReadAsAsync”的定义,并且找不到可接受第一个“HttpContent”类型参数的可访问扩展方法“ReadAsAsync”(是否缺少 using 指令或程序集引用?) 方法:引用Microsoft.AspNet.WebApi.Client 2、 “IC 阅读全文
posted @ 2021-01-28 15:51 Cody& 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1、将.csproj文件 <TargetFramework>net5.0</TargetFramework> 2、连接oracle,open时报错:The type initializer for 'OracleInternal.ServiceObjects.OracleConnectionImpl 阅读全文
posted @ 2021-01-20 14:10 Cody& 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 在做单元测试的时候碰到以下报错: The instance of entity type 'XXX' cannot be tracked because another instance with the same key value for {'XX'} is already being trac 阅读全文
posted @ 2020-12-23 16:32 Cody& 阅读(4260) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2020-12-22 17:04 Cody& 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 首先要引用以下包 新建DatabaseType枚举 public enum DatabaseType { SQLServer, Oracle, PostgreSQL } EF Core 1、新建IDbContextFactory接口 public interface IDbContextFactor 阅读全文
posted @ 2020-10-08 17:02 Cody& 阅读(1528) 评论(0) 推荐(1) 编辑
摘要: 1、引用以下包 2、在Program.cs中修改如下: public static void Main(string[] args) { Log.Logger = new LoggerConfiguration() .MinimumLevel.Error() .MinimumLevel.Overri 阅读全文
posted @ 2020-10-08 16:22 Cody& 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 下图为Model类 但输出的参数名开头都变成小写,如下图: 我希望输出的参数名跟model的一样,需要在nuget引入Microsoft.AspNetCore.Mvc.NewtonsoftJson包 在项目Startup.cs添加代码如下: services.AddControllers().Add 阅读全文
posted @ 2020-09-09 16:53 Cody& 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 批量API测试 1、新建csv文档如下 2、打开jmeter,添加CSV数据文件设置 3、导入前面写好CSV文件,变量名称为CSV文件中的参数名 4、添加线程组,然后添加HTTP请求,使用${参数名}来获取CSV中的值 5、右击HTTP请求,添加 HTTP信息头管理器、察看结果树、汇总报告 6、点击 阅读全文
posted @ 2020-08-15 10:40 Cody& 阅读(421) 评论(0) 推荐(0) 编辑