随笔分类 - .NET Core
摘要:string sendUrl = $"http://10.172.1.20/wtoptst/ws/r/awsp920"; HttpClient sendclient = new HttpClient(); string testStr = JsonConvert.SerializeObject(re
阅读全文
摘要:Dim date2Entered As String = InputBox("Enter a date") Try Dim date2 As Date = Date.Parse(date2Entered) Dim date1 As Date = Now ' Determine the number
阅读全文
摘要://Program.cs 中注册builder.Services.AddMemoryCache();//缓存 https://learn.microsoft.com/zh-cn/dotnet/core/extensions/caching#in-memory-caching
阅读全文
摘要://Program.cs里面使用// global cors policy app.UseCors(x => x .AllowAnyMethod() .AllowAnyHeader() .SetIsOriginAllowed(origin => true) // allow any origin .
阅读全文
摘要:1、微信公众号网页开发授权文档 2、主要测试代码 前端界面代码 <form method="POST" id="submitForm"> <label for="name">工号</label> <input type="text" class="form-control" name="userNa
阅读全文
摘要:1、微信公众号文档 微信公众号模板消息发送文档 2、测试代码 /// <summary> /// 测试公众号发送推送消息 /// </summary> public async Task<bool> SendMessage() { //公众号的appid|secret var appid = "填写
阅读全文
摘要:调试的时候使用6000端口访问失败,百度说是谷歌不能直接访问 部分端口,不纠结了,改成其他的端口继续。
阅读全文
摘要:下载net5\6\7 下载安装Net SDK 、ASP.NET Core Runtime .NET Downloads (Linux, macOS, and Windows) (microsoft.com) 下载安装 .NET Core 托管捆绑包 托管捆绑包|微软文档 (microsoft.com
阅读全文
摘要:发布报错: .NET Core程序发布报错:project.assets.json”没有“.NETCoreApp,Version=v3.1/win-x64”的目标。确保已运行还原,且“netcoreapp3.1”已包含在项目的 TargetFrameworks中。
阅读全文
摘要:declare @TableName sysname = 'Emps' declare @Result varchar(max) = ' /// <summary> /// ' + @TableName + ' /// </summary> public class ' + @TableName +
阅读全文
摘要:public class WKReport : Entity<string> [Required][DatabaseGenerated(DatabaseGeneratedOption.Identity)] //自增 public int ReportID { get; set; } }
阅读全文
摘要:问题:页面处于loading....状态或500内部服务器错误 安装重写URL模块: https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads 微软BalzorIIS部署: https://docs.microso
阅读全文
摘要:生产环境常用的记录: dotnet goods.HttpApi.Host.dll --urls="http://10.168.5.147:44331"
阅读全文