06 2021 档案
摘要:#region 毫秒延时 界面不会卡死 public static void Delay(int mm) { DateTime current = DateTime.Now; while (current.AddMilliseconds(mm) > DateTime.Now) { Applicati
阅读全文
摘要:总结: mysql中: 1.isnull(exper) 判断exper是否为空,是则返回1,否则返回0 2.ifnull(exper1,exper2)判断exper1是否为空,是则用exper2代替 3.nullif(exper1,exper2)如果expr1= expr2 成立,那么返回值为NUL
阅读全文
摘要:上海市浦东新区乳山路231号 121.533084,31.242315 上海市浦东新区锦绣路1001号 121.558979,31.222046 用sql计算: SELECT (acos(sin((31.242315*3.1415)/180) * sin((31.222046*3.1415)/180
阅读全文
摘要:1、添加引用 nuget 搜索swagger,安装Swashbuckle (补充如果是.net core api请安装Sawshbuckle aspnetcore) 2、打开项目App_Start文件夹,修改SwaggerConfig.cs配置文件 3、修改Api说明 4、创建项目xml注释文档 右
阅读全文
摘要:LINQto实体中不支持指定类型成员“Date”。只有初始化器、实体成员和实体导航属性?使用DbFunctions.TruncateTimevar anyCalls = _db.CallLogs.Where(r => DbFunctions.TruncateTime(r.DateTime) == c
阅读全文