03 2020 档案
SQL ALTER DATABASE SCOPED CONFIGURATION
摘要:执行 ALTER DATABASE SCOPED CONFIGURATION
阅读全文
C# 执行命令定义时发生错误 有关详细信息,请参阅内部异常
摘要:1.尝试检查一下数据库中是否存在该表,表的字段跟实体是否对应
阅读全文
常用判断方法
摘要:1. function isUndefinedOrNull(obj){ return typeof obj 'undefined' || obj null; } function isNullOrWhiteSpace(obj){ return typeof obj 'undefined' || ob
阅读全文
日期处理函数
摘要:1. #region 日期处理函数 /// <summary> /// 计算本周的周一日期 /// </summary> /// <returns></returns> private static DateTime GetMondayDate() { return GetMondayDate(Da
阅读全文
日期时间转换处理
摘要:1.获取一周中的第一天 //获取一周中的第一天 function getFirstDay(day) { var now = day; var nowTime = now.getTime(); var day = (now.getDay() == "0" ? "7" :now.getDay() );
阅读全文
Stream 和 byte[] 之间的转换
摘要:1.Stream转byte[],注意设置当前流的位置为流的开始 Stream saveStream = new MemoryStream(); doc.SaveToStream(saveStream, FileFormat.Auto); // 设置当前流的位置为流的开始 saveStream.See
阅读全文
posted @ 2020-03-19 17:46
JioNote
Path的使用
摘要:1.Path.GetTempPath()获取系统临时保存路径 2.Path.Combine(string path1, string path2)将path1、path2合同成一个路径
阅读全文
posted @ 2020-03-19 17:12
JioNote
Math.Round {实现四舍五入的小技巧}
摘要:使用Math.Round实现预期的四舍五入?C#中的Math.Round提供了非常多的重载方法,其中有两个重载方法是, public static double Round (double value,int digits,MidpointRounding mode); public static
阅读全文
浙公网安备 33010602011771号