上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 69 下一页
摘要: 在用Asp.netCore 3.1 开发 WebApi 接口,若有时间类型的字段,会经常一个错误。 入参: { "schoolId": 111, "beginTime": "2020-08-18 08:00:00", "endTime": "2020-08-18 10:00:00", } 然后就会报 阅读全文
posted @ 2020-08-18 14:42 沐雪架构师 阅读(4933) 评论(0) 推荐(1)
摘要: public static IList<T> DataTableToIList<T>(DataTable dt) { if (dt == null) return null; DataTable p_Data = dt; // 返回值初始化 IList<T> result = new List<T> 阅读全文
posted @ 2020-08-16 01:07 沐雪架构师 阅读(885) 评论(0) 推荐(0)
摘要: 直接上代码:比如: 类MXConfigReq有很多个字段, 他的一个对象 req已经初始化相关值。用如下代码,其中,p.Name取的是字段的名称, p.GetValue(req)取的是对象的该字段的值; using System.Reflection; Type type = req.GetType 阅读全文
posted @ 2020-08-14 00:13 沐雪架构师 阅读(1365) 评论(0) 推荐(0)
摘要: 官方文档如下: https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html 阅读全文
posted @ 2020-08-12 00:01 沐雪架构师 阅读(462) 评论(0) 推荐(0)
摘要: 1、StartUp.cs类里定义个全局变量: using Microsoft.Extensions.Logging; public static readonly ILoggerFactory MyLoggerFactory = LoggerFactory.Create(builder => { # 阅读全文
posted @ 2020-08-11 23:57 沐雪架构师 阅读(943) 评论(0) 推荐(0)
摘要: https://getbootstrap.net/docs/layout/grid/ 阅读全文
posted @ 2020-08-08 00:41 沐雪架构师 阅读(85) 评论(0) 推荐(0)
摘要: Bootstrap 提供了一套响应式、移动设备优先的流式网格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多 12 列。 我们也可以根据自己的需要,定义列数: Bootstrap 4 的网格系统是响应式的,列会根据屏幕大小自动重新排列。 网格类 Bootstrap 4 网格系统 阅读全文
posted @ 2020-08-06 00:44 沐雪架构师 阅读(206) 评论(0) 推荐(0)
摘要: 实际项目里用到,随手记,不做详细扩展。 阅读全文
posted @ 2020-07-19 23:04 沐雪架构师 阅读(995) 评论(0) 推荐(0)
摘要: /// <summary> /// 沐雪微淘小程序商城 /// cookie设置 /// </summary> public static class CookieHelper { private static HttpResponse CurrentResponse { get { return 阅读全文
posted @ 2020-07-18 20:36 沐雪架构师 阅读(911) 评论(0) 推荐(0)
摘要: 场景: 在开发web项目的时候,写一些通用的公共方法是很常见的操作,而一些关于Http的操作,经常会用到HttpContext这个对象。 若是在Controller里,我们操作就很简单,可以使用注入的方法直接使用:,比如以下代码: public class HomeController : Cont 阅读全文
posted @ 2020-07-18 20:33 沐雪架构师 阅读(2435) 评论(2) 推荐(1)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 69 下一页