上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 44 下一页
摘要: 提问 C# 如何连接WebSocket服务 回答 引入nuget WebSocketSharp 连接服务 using ActiveAlarmDemo.Models; using Microsoft.Extensions.Hosting; using Newtonsoft.Json; using We 阅读全文
posted @ 2022-12-28 15:15 喜爱糖葫芦 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 提问 如何创建 .NET Core后台服务 回答 引入nuget Microsoft.Extensions.Hosting 创建服务 using ActiveAlarmDemo.Models; using Microsoft.Extensions.Hosting; namespace ActiveA 阅读全文
posted @ 2022-12-27 17:04 喜爱糖葫芦 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 提问 EF Core如创建sqlite表 回答 在项目根目录执行命令 dotnet tool install --global dotnet-ef dotnet add package Microsoft.EntityFrameworkCore.Design dotnet ef migrations 阅读全文
posted @ 2022-12-26 14:39 喜爱糖葫芦 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 提问 linq 如何使用left join? 回答 from v in list1 join c in list2 on v.[条件] equals c.[条件] select new 实体 { 属性赋值 } 注意 on后边条件顺序不能错 on和equals关键字的使用 参考 https://www 阅读全文
posted @ 2022-12-14 16:12 喜爱糖葫芦 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 结构体成员顺序不一样,则结构体不是同一个结构体了 阅读全文
posted @ 2022-12-08 10:37 喜爱糖葫芦 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 提问 blazor如何调用js,有什么注意点 回答 js 应该写在index.html中的header里 否则会报 Microsoft.JSInterop.JSException: Could not find *** <!DOCTYPE html> <html> <head> <meta char 阅读全文
posted @ 2022-12-07 18:47 喜爱糖葫芦 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 提问 WebAPI如何提供下载文件功能 回答 //开启目录浏览服务 builder.Services.AddDirectoryBrowser(); //指定文件目录 app.UseFileServer(new FileServerOptions { FileProvider = new Physic 阅读全文
posted @ 2022-11-29 14:28 喜爱糖葫芦 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 运行命令 对当前项目取消sl验证,不要对全局项目使用 git config http.sslverify false 参考 https://www.cnblogs.com/jaxu/p/12027839.html 阅读全文
posted @ 2022-11-21 16:01 喜爱糖葫芦 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 命令 # .NET Core v2 # Build, test, package, or publish a dotnet application, or run a custom dotnet command. - task: DotNetCoreCLI@2 inputs: command: 'b 阅读全文
posted @ 2022-11-21 09:39 喜爱糖葫芦 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 应该让生产者去关闭channel,同时不要频繁地关闭channel 阅读全文
posted @ 2022-11-21 09:04 喜爱糖葫芦 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 44 下一页