上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 要在C#中搭建基于ISqlSugarClient的三层架构框架,你需要定义数据访问层(DAL)、业务逻辑层(BLL)和表现层(UI)。下面是一个完整的例子,涉及数据库仓储、业务逻辑层,以及依赖注入。这个例子基于ASP.NET Core MVC构建,使用ISqlSugarClient来处理数据访问。这 阅读全文
posted @ 2024-05-04 08:38 摩诘 阅读(504) 评论(0) 推荐(0)
摘要: 当你在使用C#的HttpClient进行SOAP请求时,确保你的代码类似于以下示例: using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; class Program { stati 阅读全文
posted @ 2024-05-04 08:22 摩诘 阅读(272) 评论(0) 推荐(0)
摘要: 如果你需要在HTTP请求中包含账号密码,你可以使用基本的HTTP身份验证。在C#中,你可以通过设置 HttpClient 的 DefaultRequestHeaders 来添加身份验证信息。以下是修改后的示例代码: using System; using System.Net.Http; using 阅读全文
posted @ 2024-05-04 08:20 摩诘 阅读(890) 评论(0) 推荐(0)
摘要: 以下是使用 RestSharp 发送 POST 请求并附带 JSON 请求体的示例,以及相应的使用 HttpClient 的等价方式: 首先,使用 RestSharp: using System; using RestSharp; using Newtonsoft.Json; class Progr 阅读全文
posted @ 2024-05-04 08:16 摩诘 阅读(1096) 评论(0) 推荐(0)
摘要: internal class Program { //static void Main(string[] args) //{ // byte[] arr = new byte[1024]; // 1.创建socket对象 // Socket socket = new Socket(AddressFa 阅读全文
posted @ 2023-04-04 23:05 摩诘 阅读(1007) 评论(0) 推荐(0)
摘要: public class UdsClient { public Socket _socket { get; set; } public UnixDomainSocketEndPoint endPoint = null; public SocketInfo socketInfo = null; pub 阅读全文
posted @ 2023-01-03 14:11 摩诘 阅读(162) 评论(0) 推荐(0)
摘要: 一、参考源文链接 1、https://www.likecs.com/show-897836.html 2、https://blog.csdn.net/weixin_43614067/article/details/115373776 二、Quartz基本使用 public class Job1 : 阅读全文
posted @ 2022-12-15 16:56 摩诘 阅读(419) 评论(0) 推荐(0)
摘要: http://blog.baibaota.com/1575.html 阅读全文
posted @ 2022-04-15 11:22 摩诘 阅读(71) 评论(0) 推荐(0)
摘要: var tableObj = table.render({ id: 'list_table', elem: '#list_table', url: '', align: "center", cols: [[ //表头 {type: 'checkbox'}, {type: 'numbers', tit 阅读全文
posted @ 2022-04-12 15:06 摩诘 阅读(855) 评论(0) 推荐(0)
摘要: 1、nuget 安装 iTextSharp (V4.1.6) to .NET Core. 2、code public DataTable ToDataTable<T>(IEnumerable<T> collection, Dictionary<string, string> columnMaps = 阅读全文
posted @ 2022-03-31 13:19 摩诘 阅读(267) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页